From 335de75b668f9a227e0a86a3801309ca7bef6586 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 3 Nov 2023 00:27:27 +0100 Subject: [PATCH] upd: use computed on permissions --- packages/frontend/src/pages/miauth.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/miauth.vue b/packages/frontend/src/pages/miauth.vue index 3b49ac40ab..391587e5bd 100644 --- a/packages/frontend/src/pages/miauth.vue +++ b/packages/frontend/src/pages/miauth.vue @@ -60,7 +60,7 @@ const props = defineProps<{ permission: string; // コンマ区切り }>(); -const _permissions = props.permission ? props.permission.split(',') : []; +const _permissions = $computed(() => props.permission ? props.permission.split(',') : []); let state = $ref(null); @@ -77,6 +77,7 @@ async function accept(): Promise { if (props.callback) { const cbUrl = new URL(props.callback); if (['javascript:', 'file:', 'data:', 'mailto:', 'tel:'].includes(cbUrl.protocol)) throw new Error('invalid url'); + console.log(props.callback, props.session); location.href = appendQuery(props.callback, query({ session: props.session })); } }