From b9303de3bd59393b41b8e3e03bbefd134dfe5225 Mon Sep 17 00:00:00 2001 From: baiqi Date: Thu, 11 Jul 2024 11:42:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=99=BB=E5=BD=95=E9=A1=B5):=20=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=A2=91=E7=B9=81=E5=88=B7=E6=96=B0=E9=A1=B6?= =?UTF-8?q?=E9=83=A8=E8=BF=9B=E5=BA=A6=E6=9D=A1=E6=9C=AA=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/router/guard/userLoginInfo.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/router/guard/userLoginInfo.ts b/frontend/src/router/guard/userLoginInfo.ts index b0598ab669..a127e64606 100644 --- a/frontend/src/router/guard/userLoginInfo.ts +++ b/frontend/src/router/guard/userLoginInfo.ts @@ -1,3 +1,4 @@ +import { sleep } from '@/utils'; import { clearToken, hasToken, isLoginExpires } from '@/utils/auth'; import NProgress from 'nprogress'; // progress bar @@ -25,6 +26,8 @@ export default function setupUserLoginInfoGuard(router: Router) { ...to.query, } as LocationQueryRaw, }); + await sleep(0); + NProgress.done(); } }); }