From dce3eca3dc273be7a5bd66094b840bb6c4f763c0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 21 十一月 2021 14:09:44 +0800 Subject: [PATCH] 2021-11-21 --- src/templates/calendarconfig/index.jsx | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/templates/calendarconfig/index.jsx b/src/templates/calendarconfig/index.jsx index ce34dfd..e63eef9 100644 --- a/src/templates/calendarconfig/index.jsx +++ b/src/templates/calendarconfig/index.jsx @@ -10,6 +10,7 @@ import Api from '@/api' import zhCN from '@/locales/zh-CN/model.js' import enUS from '@/locales/en-US/model.js' +import MKEmitter from '@/utils/events.js' import Utils from '@/utils/utils.js' import asyncComponent from '@/utils/asyncComponent' @@ -352,6 +353,8 @@ // } resolve() }).then(() => { + let reload = _config.isAdd + // 淇濆瓨鏃跺垹闄ら厤缃被鍨嬶紝system 銆乽ser delete _config.type delete _config.isAdd @@ -430,6 +433,8 @@ config: _config, openEdition: response.open_edition || '', originMenu: fromJS(_config).toJS() + }, () => { + reload && MKEmitter.emit('revert') }) this.props.reloadmenu() -- Gitblit v1.8.0