diff --git a/web/src/permission.js b/web/src/permission.js index 36fe2295ef..09cc946128 100644 --- a/web/src/permission.js +++ b/web/src/permission.js @@ -101,6 +101,7 @@ router.beforeEach(async(to, from) => { router.afterEach(() => { // 路由加载完成后关闭进度条 + document.getElementsByClassName('main-cont main-right')[0]?.scrollTo(0, 0) Nprogress.done() }) diff --git a/web/src/router/index.js b/web/src/router/index.js index 290e93133e..3910cb75af 100644 --- a/web/src/router/index.js +++ b/web/src/router/index.js @@ -18,7 +18,7 @@ const routes = [{ const router = createRouter({ history: createWebHashHistory(), - routes + routes, }) export default router