chore: update deps
This commit is contained in:
@@ -12,9 +12,11 @@ import { configAccessGuard } from './access';
|
||||
* @param router
|
||||
*/
|
||||
function configCommonGuard(router: Router) {
|
||||
// 记录已经加载的页面
|
||||
const loadedPaths = new Set<string>();
|
||||
|
||||
router.beforeEach(async (to) => {
|
||||
// 页面加载进度条
|
||||
if (preference.pageProgress) {
|
||||
startProgress();
|
||||
}
|
||||
@@ -25,6 +27,8 @@ function configCommonGuard(router: Router) {
|
||||
router.afterEach((to) => {
|
||||
// 记录页面是否加载,如果已经加载,后续的页面切换动画等效果不在重复执行
|
||||
loadedPaths.add(to.path);
|
||||
|
||||
// 关闭页面加载进度条
|
||||
if (preference.pageProgress) {
|
||||
stopProgress();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user