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> <template>
<div class="container infoBoardBox" style="height:93.2vh;;background-color: #11232a;"> <div class="container infoBoardBox" style="height:94vh;;background-color: #11232a;">
<div style=" <div style="
height: 100%; height: 100%;
margin-left: 0px; margin-left: 0px;
@ -324,6 +324,7 @@ export default {
}, },
mounted() { mounted() {
// this.rowDrop(); // this.rowDrop();
this.hideScrollFn()
}, },
methods: { methods: {
@ -3581,6 +3582,32 @@ export default {
setTimeout(() => { setTimeout(() => {
this.allVmsTemplate('no') this.allVmsTemplate('no')
}, 500) }, 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