From df53474d160942c65bb76304492830d6d3527790 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 26 Jun 2024 17:11:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E7=BD=91?= =?UTF-8?q?=E9=A1=B5=E7=BB=84=E4=BB=B6=E4=B8=AD=E6=B7=BB=E5=8A=A0=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F=E5=B9=B6=E5=9C=A8=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/permissionMobile.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/permissionMobile.ts b/core/core-frontend/src/permissionMobile.ts index 7affd4ecd0..38f8e851df 100644 --- a/core/core-frontend/src/permissionMobile.ts +++ b/core/core-frontend/src/permissionMobile.ts @@ -23,7 +23,9 @@ router.beforeEach(async (to, _, next) => { start() loadStart() await appearanceStore.setAppearance() - if (wsCache.get('user.token')) { + if (to.name === 'link') { + next() + } else if (wsCache.get('user.token')) { if (!userStore.getUid) { await userStore.setUser() }