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'); const dom = document.getElementById('page-content');
setTimeout(() => {
if (dom) { if (dom) {
if (!scrollbar) { if (!scrollbar) {
scrollbar = new PerfectScrollbar('#page-content', { suppressScrollX: true }); scrollbar = new PerfectScrollbar('#page-content', { suppressScrollX: true });
scrollbar.update(); // scrollbar.update();
} else { } else {
scrollbar.update(); scrollbar.update();
dom.scrollTop = 0; dom.scrollTop = 0;
} }
} }
}, 300)
}) })

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

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

Loading…
Cancel
Save