From c66c7b65432af8cdab430b7ac079a4fd75c3d60f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 10 九月 2021 19:20:58 +0800 Subject: [PATCH] 2021-09-10 --- src/views/mobdesign/index.jsx | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx index 8b900b8..26603f4 100644 --- a/src/views/mobdesign/index.jsx +++ b/src/views/mobdesign/index.jsx @@ -942,7 +942,7 @@ Typename: sessionStorage.getItem('typename'), MenuName: item.name || '', PageParam: JSON.stringify({Template: item.type}), - open_edition: item.open_edition || '', + open_edition: _item.open_edition || '', menus_rolelist: window.btoa(window.encodeURIComponent(JSON.stringify(roles))), LText: '', LTexttb: '' @@ -1181,10 +1181,25 @@ insert = (item) => { let config = fromJS(this.state.config).toJS() + if (item.type === 'topbar' && config.components.findIndex(m => m.type === 'topbar') > -1) { + notification.warning({ + top: 92, + message: '瀵艰埅鏍忎笉鍙噸澶嶆坊鍔狅紒', + duration: 5 + }) + return + } + config.components.push(item) this.setState({config}) window.GLOB.customMenu = config + + notification.success({ + top: 92, + message: '绮樿创鎴愬姛锛�', + duration: 2 + }) } refreshView = () => { -- Gitblit v1.8.0