滚动条BUG修改

This commit is contained in:
a0049873 2022-07-07 09:23:12 +08:00
parent 25b6d1196b
commit e6528b4b3b
2 changed files with 3 additions and 13 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2022-03-29 17:48:03
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-05 15:04:47
* @LastEditTime: 2022-07-07 09:22:56
* @Description: 告诉大家这是什么
*/
import { createApp } from 'vue'
@ -51,9 +51,3 @@ router.beforeEach((to, from, next) => {
document.body.scrollTop = 0
next()
})
// bug/
router.afterEach((to, from, next) => {
document
.querySelector('body')
.setAttribute('style', 'overflow: auto !important;')
})

View File

@ -267,21 +267,17 @@
if (mynoticeDom) {
mynoticeDom.addEventListener('mouseover', () => {
mynoticeFlag.value = true
// document.documentElement.style.overflowY = 'hidden'
})
mynoticeDom.addEventListener('mouseout', () => {
mynoticeFlag.value = false
document.documentElement.style.overflowY = 'scroll'
})
}
if (mynotice) {
mynotice.addEventListener('mouseover', () => {
mynoticeFlag.value = true
// document.documentElement.style.overflowY = 'hidden'
})
mynotice.addEventListener('mouseout', () => {
mynoticeFlag.value = false
document.documentElement.style.overflowY = 'scroll'
})
}
mybus.on('getSgcNum', () => {