462无法滚动问题

This commit is contained in:
gaoyuanwei 2022-07-06 16:34:17 +08:00
parent 7b6dfa8b93
commit eb08f86f21
1 changed files with 6 additions and 0 deletions

View File

@ -51,3 +51,9 @@ router.beforeEach((to, from, next) => {
document.body.scrollTop = 0
next()
})
// bug/
router.afterEach((to, from, next) => {
document
.querySelector('body')
.setAttribute('style', 'overflow: auto !important;')
})