滚动条BUG修改
This commit is contained in:
parent
25b6d1196b
commit
e6528b4b3b
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.wuhongjian
|
* @Author: hisense.wuhongjian
|
||||||
* @Date: 2022-03-29 17:48:03
|
* @Date: 2022-03-29 17:48:03
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-07-05 15:04:47
|
* @LastEditTime: 2022-07-07 09:22:56
|
||||||
* @Description: 告诉大家这是什么
|
* @Description: 告诉大家这是什么
|
||||||
*/
|
*/
|
||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
|
@ -51,9 +51,3 @@ 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;')
|
|
||||||
})
|
|
||||||
|
|
|
@ -267,21 +267,17 @@
|
||||||
if (mynoticeDom) {
|
if (mynoticeDom) {
|
||||||
mynoticeDom.addEventListener('mouseover', () => {
|
mynoticeDom.addEventListener('mouseover', () => {
|
||||||
mynoticeFlag.value = true
|
mynoticeFlag.value = true
|
||||||
// document.documentElement.style.overflowY = 'hidden'
|
|
||||||
})
|
})
|
||||||
mynoticeDom.addEventListener('mouseout', () => {
|
mynoticeDom.addEventListener('mouseout', () => {
|
||||||
mynoticeFlag.value = false
|
mynoticeFlag.value = false
|
||||||
document.documentElement.style.overflowY = 'scroll'
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (mynotice) {
|
if (mynotice) {
|
||||||
mynotice.addEventListener('mouseover', () => {
|
mynotice.addEventListener('mouseover', () => {
|
||||||
mynoticeFlag.value = true
|
mynoticeFlag.value = true
|
||||||
// document.documentElement.style.overflowY = 'hidden'
|
|
||||||
})
|
})
|
||||||
mynotice.addEventListener('mouseout', () => {
|
mynotice.addEventListener('mouseout', () => {
|
||||||
mynoticeFlag.value = false
|
mynoticeFlag.value = false
|
||||||
document.documentElement.style.overflowY = 'scroll'
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
mybus.on('getSgcNum', () => {
|
mybus.on('getSgcNum', () => {
|
||||||
|
|
Loading…
Reference in New Issue