From 970d488a88a2aa6ebd82ab68ee6e6e4fb3a0e294 Mon Sep 17 00:00:00 2001 From: Rewrite0 <49576640+Rewrite0@users.noreply.github.com> Date: Sat, 3 Jun 2023 11:57:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B2=A1=E6=9C=89=E7=99=BB=E9=99=86?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E8=A7=A6=E5=8F=91=20token=20=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1b89ad97..af1f79a4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,8 +11,10 @@ const theme: GlobalThemeOverrides = { }, }; -const { refresh } = useAuth(); -refresh(); +const { refresh, isLogin } = useAuth(); +if (isLogin.value) { + refresh(); +}