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/subtableconfig/index.jsx | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/templates/subtableconfig/index.jsx b/src/templates/subtableconfig/index.jsx index beed453..b4a6ebc 100644 --- a/src/templates/subtableconfig/index.jsx +++ b/src/templates/subtableconfig/index.jsx @@ -12,6 +12,7 @@ import zhCN from '@/locales/zh-CN/model.js' import enUS from '@/locales/en-US/model.js' import Utils from '@/utils/utils.js' +import MKEmitter from '@/utils/events.js' import { updateSubTable } from '@/utils/utils-update.js' import asyncComponent from '@/utils/asyncComponent' @@ -292,11 +293,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))) @@ -473,6 +475,7 @@ config: _config, originConfig: fromJS(_config).toJS() }, () => { + reload && MKEmitter.emit('revert') this.setState({ menuloading: false, menucloseloading: false -- Gitblit v1.8.0