fix(登录页): 登录页频繁刷新顶部进度条未结束问题修复
This commit is contained in:
parent
a37b8f1b94
commit
b9303de3bd
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue