Commit d61aaf8f authored by afc163's avatar afc163

remove collapse from defaultSettings

parent d1308e4a
......@@ -21,6 +21,10 @@ const Body = ({ children, title, style }) => (
@connect(({ setting }) => ({ setting }))
class SettingDrawer extends PureComponent {
state = {
collapse: false,
};
getLayOutSetting = () => {
const {
setting: { grid, fixedHeader, layout, autoHideHeader, fixSiderbar },
......@@ -98,13 +102,14 @@ class SettingDrawer extends PureComponent {
};
togglerContent = () => {
const { setting } = this.props;
this.changeSetting('collapse', !setting.collapse);
const { collapse } = this.state;
this.setState({ collapse: !collapse });
};
render() {
const { setting } = this.props;
const { collapse, navTheme, primaryColor, layout, colorWeak } = setting;
const { navTheme, primaryColor, layout, colorWeak } = setting;
const { collapse } = this.state;
return (
<Drawer
visible={collapse}
......
module.exports = {
collapse: false,
navTheme: 'dark',
primaryColor: '#1890FF',
layout: 'sidemenu',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment