Browse Source

fix-

wangqin
IAMHERE 11 months ago
parent
commit
ad813c1afa
  1. 29
      ruoyi-ui/src/views/information/board/index.vue

29
ruoyi-ui/src/views/information/board/index.vue

@ -1,5 +1,5 @@
<template>
<div class="container infoBoardBox" style="height:93.2vh;;background-color: #11232a;">
<div class="container infoBoardBox" style="height:94vh;;background-color: #11232a;">
<div style="
height: 100%;
margin-left: 0px;
@ -324,6 +324,7 @@ export default {
},
mounted() {
// this.rowDrop();
this.hideScrollFn()
},
methods: {
@ -3581,6 +3582,32 @@ export default {
setTimeout(() => {
this.allVmsTemplate('no')
}, 500)
},
hideScrollFn() {
//
document.documentElement.style.overflow = 'hidden'
//
function disableScroll() {
//
const scrollPosition = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0
//
document.body.style.position = 'fixed'
document.body.style.top = `-${scrollPosition}px`
}
//
function enableScroll() {
//
const scrollPosition = parseInt(document.body.style.top || '0', 10)
//
document.body.style.position = ''
document.body.style.top = ''
//
window.scrollTo(0, -scrollPosition)
}
}
}
}

Loading…
Cancel
Save