462无法滚动问题
This commit is contained in:
parent
7b6dfa8b93
commit
eb08f86f21
|
@ -51,3 +51,9 @@ router.beforeEach((to, from, next) => {
|
||||||
document.body.scrollTop = 0
|
document.body.scrollTop = 0
|
||||||
next()
|
next()
|
||||||
})
|
})
|
||||||
|
// 解决bug:页面/路由跳转后,滚动条消失,页面无法滚动
|
||||||
|
router.afterEach((to, from, next) => {
|
||||||
|
document
|
||||||
|
.querySelector('body')
|
||||||
|
.setAttribute('style', 'overflow: auto !important;')
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue