From d0fff562ea05f23850d8b84db87bb8484366a1d5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 29 Mar 2020 17:04:22 +0900 Subject: [PATCH] Fix bug --- src/client/pages/miauth.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/pages/miauth.vue b/src/client/pages/miauth.vue index 2ee0f2347..0e170af11 100644 --- a/src/client/pages/miauth.vue +++ b/src/client/pages/miauth.vue @@ -68,8 +68,8 @@ export default Vue.extend({ icon(): string { return this.$route.query.icon; }, - permission(): string { - return this.$route.query.permission; + permission(): string[] { + return this.$route.query.permission ? this.$route.query.permission.split(',') : []; }, }, methods: { @@ -79,7 +79,7 @@ export default Vue.extend({ session: this.session, name: this.name, iconUrl: this.icon, - permission: this.permission || [], + permission: this.permission, }); this.state = 'accepted';