Browse Source

页面高度

dev
巴林闲侠 2 years ago
parent
commit
bec75e9bf6
  1. 2
      web/client/src/layout/components/sider/index.js
  2. 1
      web/client/src/layout/containers/layout/index.js
  3. 4
      web/package.json

2
web/client/src/layout/components/sider/index.js

@ -62,7 +62,7 @@ const Sider = props => {
setSelectedKeys(selectedKeys)
}}
onOpenChange={(ks) => {
setOpenKeys(ks)
setOpenKeys(ks.length > 1 ? [ks.pop()] : ks)
}}
>
{items}

1
web/client/src/layout/containers/layout/index.js

@ -52,6 +52,7 @@ const LayoutContainer = props => {
})
}, [user])
useEffect(() => {
resize_()
scrollbar = new PerfectScrollbar('#page-content', { suppressScrollX: true });
}, [])

4
web/package.json

@ -6,11 +6,7 @@
"scripts": {
"test": "mocha",
"start": "cross-env NODE_ENV=development npm run start-params",
<<<<<<< Updated upstream
"start-params": "node server -p 5000 -u http://localhost:13400 --qndmn http://rfkimpwbb.hn-bkt.clouddn.com --vcmpWebUrl https://mediaconsole.ngaiot.com --vcmpMirrorId 24461524032354",
=======
"start-params": "node server -p 5000 -u http://localhost:13401 --qndmn http://rfkimpwbb.hn-bkt.clouddn.com --vcmpWebUrl https://mediaconsole.ngaiot.com --vcmpMirrorId 24461524032354",
>>>>>>> Stashed changes
"deploy": "export NODE_ENV=production&&npm run color && npm run build && node server",
"build-dev": "export NODE_ENV=development&&webpack --config webpack.config.js",
"build": "export NODE_ENV=production&&webpack --config webpack.config.prod.js",

Loading…
Cancel
Save