| | |
| | | return |
| | | } |
| | | |
| | | Api.deleteMenuStorage(config.MenuID).then(() => { |
| | | Api.deleteMenuStorage(config.MenuID) |
| | | |
| | | setTimeout(() => { |
| | | this.setState({ |
| | | visible: false, |
| | | revertLoading: false |
| | |
| | | window.GLOB.CacheMap = new Map() |
| | | MKEmitter.emit('reloadMenuView', config.MenuID) |
| | | }) |
| | | }) |
| | | }, 100) |
| | | }) |
| | | } |
| | | |
| | |
| | | return |
| | | } |
| | | |
| | | Api.deleteMenuStorage(config.MenuID).then(() => { |
| | | Api.deleteMenuStorage(config.MenuID) |
| | | |
| | | setTimeout(() => { |
| | | this.setState({ |
| | | visible: false, |
| | | confirmLoading: false |
| | |
| | | window.GLOB.CacheMap = new Map() |
| | | MKEmitter.emit('reloadMenuView', config.MenuID) |
| | | }) |
| | | }) |
| | | }, 100) |
| | | }) |
| | | } |
| | | |
| | |
| | | render() { |
| | | const { components, visible } = this.state |
| | | |
| | | if (window.GLOB.mkHS || window.GLOB.sysType !== 'local') return null |
| | | |
| | | return ( |
| | | <div className="page-setting-wrap"> |
| | | {window.GLOB.sysType === 'local' ? <Button |
| | | icon="setting" |
| | | shape="circle" |
| | | className="page-setting" |
| | | onClick={this.trigger} |
| | | /> : null} |
| | | <div className="tool-wrap"> |
| | | <Button icon="setting" shape="circle" onClick={this.trigger}/> |
| | | <Modal |
| | | wrapClassName="custom-setting-modal" |
| | | title={'自定义设置'} |