路由跳转后自动页面回归顶部
This commit is contained in:
@@ -101,6 +101,7 @@ router.beforeEach(async(to, from) => {
|
||||
|
||||
router.afterEach(() => {
|
||||
// 路由加载完成后关闭进度条
|
||||
document.getElementsByClassName('main-cont main-right')[0]?.scrollTo(0, 0)
|
||||
Nprogress.done()
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user