fix: 修改首页代码

This commit is contained in:
MTrun
2021-12-14 20:00:20 +08:00
parent 0b326c4e76
commit d699206cd9
16 changed files with 176 additions and 290 deletions
+2 -1
View File
@@ -16,8 +16,9 @@ export function createRouterGuards(router: Router) {
})
router.afterEach((to, _, failure) => {
document.title = (to?.meta?.title as string) || document.title;
const Loading = window['$loading'] || null;
Loading && Loading.start();
document.title = (to?.meta?.title as string) || document.title;
Loading && Loading.finish();
})