wenlele 2 years ago
parent
commit
3582eb7308
  1. 4
      web/client/src/layout/containers/layout/index.jsx
  2. 1
      web/client/src/sections/control/containers/control.jsx

4
web/client/src/layout/containers/layout/index.jsx

@ -189,15 +189,17 @@ const LayoutContainer = props => {
}
}
const dom = document.getElementById('page-content');
setTimeout(() => {
if (dom) {
if (!scrollbar) {
scrollbar = new PerfectScrollbar('#page-content', { suppressScrollX: true });
scrollbar.update();
// scrollbar.update();
} else {
scrollbar.update();
dom.scrollTop = 0;
}
}
}, 300)
})

1
web/client/src/sections/control/containers/control.jsx

@ -235,6 +235,7 @@ const Control = (props) => {
let webtop = 0
let webId = document.getElementById('web');
if (web) clearInterval(web)
let memberId = document.getElementById('member');
if (memberId) {
function webstart () {
member = setInterval(() => {

Loading…
Cancel
Save