From ab4d64452606649968527a7cc288c5df4456a8d9 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Mon, 19 May 2025 11:38:58 +0800 Subject: [PATCH] sc --- src/permission.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/permission.js b/src/permission.js index dca738f..1cfff14 100644 --- a/src/permission.js +++ b/src/permission.js @@ -33,8 +33,12 @@ router.beforeEach(async (to, from, next) => { if (to.path === '/login') { if (to.query?.tenantId && to.query?.appId) { setApp(to.query.tenantId, to.query.appId) + setTimeout(() => { + next({ path: '/' }) + }, 1500) + } else { + next({ path: '/' }) } - next({ path: '/' }) } else { // 获取所有字典 const dictStore = useDictStoreWithOut()