滚动条BUG修改
This commit is contained in:
parent
25b6d1196b
commit
e6528b4b3b
|
@ -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;')
|
||||
})
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
{{ item.name }}
|
||||
</div>
|
||||
<a-badge :count="sgcNum">
|
||||
<!-- 购物车 -->
|
||||
<!-- 购物车 -->
|
||||
<svg
|
||||
t="1650455446850"
|
||||
class="icon"
|
||||
|
@ -41,7 +41,7 @@
|
|||
<!-- <a-avatar shape="square" size="large" /> -->
|
||||
</a-badge>
|
||||
<a-badge :count="mynoticeNum" style="margin-left: 0.2rem">
|
||||
<!-- 消息提醒 -->
|
||||
<!-- 消息提醒 -->
|
||||
<svg
|
||||
t="1654051054113"
|
||||
class="icon2"
|
||||
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue