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/comtableconfig/index.jsx | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx index 11d6a3f..9481ddd 100644 --- a/src/templates/comtableconfig/index.jsx +++ b/src/templates/comtableconfig/index.jsx @@ -10,6 +10,7 @@ import Api from '@/api' import Utils from '@/utils/utils.js' +import MKEmitter from '@/utils/events.js' import { updateCommonTable } from '@/utils/utils-update.js' import zhCN from '@/locales/zh-CN/model.js' import enUS from '@/locales/en-US/model.js' @@ -307,11 +308,12 @@ }) } + let _LongParam = '' + let reload = _config.isAdd + // 淇濆瓨鏃跺垹闄ら厤缃被鍨嬶紝system 銆乽ser delete _config.type delete _config.isAdd - - let _LongParam = '' try { _LongParam = window.btoa(window.encodeURIComponent(JSON.stringify(_config))) @@ -531,6 +533,8 @@ config: _config, openEdition: response.open_edition || '', originMenu: fromJS(_config).toJS() + }, () => { + reload && MKEmitter.emit('revert') }) localParam.func = 'sPC_TrdMenu_AddUpt_For_Local' -- Gitblit v1.8.0