From de1d4014911e89352ae24bd3bff9f7e5b5fbd770 Mon Sep 17 00:00:00 2001 From: divisey <18656007202@163.com> Date: Thu, 9 May 2024 14:37:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20ui=20issue=20(#93)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FAuthMethodModal/FAuthMixinMessenger.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/uikit/src/components/FAuthMethodModal/FAuthMixinMessenger.tsx b/packages/uikit/src/components/FAuthMethodModal/FAuthMixinMessenger.tsx index d4cf664..310c29e 100644 --- a/packages/uikit/src/components/FAuthMethodModal/FAuthMixinMessenger.tsx +++ b/packages/uikit/src/components/FAuthMethodModal/FAuthMixinMessenger.tsx @@ -1,4 +1,4 @@ -import { defineComponent, onMounted, ref, PropType } from "vue"; +import { defineComponent, onMounted, ref, PropType, onUnmounted } from "vue"; import { useDisplay, useLocale } from "vuetify"; import authorize from "../../utils/authorize"; @@ -67,9 +67,15 @@ export const FAuthMixinMessenger = defineComponent({ }; const handleOpenInApp = () => { - window.location.href = qrUrl.value; + if (qrUrl.value) { + window.location.href = qrUrl.value; + } }; + onUnmounted(() => { + client.value?.disconnect(); + }); + onMounted(() => { client.value = authorize( {