From 4b6a4e2f04f492d770573cf48ca52d4e748a086a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 18 十月 2021 18:30:50 +0800 Subject: [PATCH] 2021-10-18 --- src/utils/utils-update.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/utils/utils-update.js b/src/utils/utils-update.js index 2d851a6..18e49e3 100644 --- a/src/utils/utils-update.js +++ b/src/utils/utils-update.js @@ -220,4 +220,42 @@ config.Template = 'SubTable' return config +} + +/** + * @description 鍗囩骇寮圭獥瀛愯〃淇℃伅 + * @param {Object} config 椤甸潰閰嶇疆淇℃伅 + * @return {Object} config + */ +export function updateSubTabTable (config) { + if (!config.version || config.version < '1.1') { + config.version = '1.1' + if (config.setting.interType === 'inner' && !config.setting.innerFunc) { + config.setting.interType = 'system' + } + // 鍏煎鎺ュ彛绫诲瀷 + config.action = config.action.map(item => { + if (item.intertype === 'inner' && !item.innerFunc) { + item.intertype = 'system' + } + return item + }) + } + + if (config.version < '1.2') { + config.version = '1.2' + // 鍏煎鍔熻兘鎸夐挳 + config.action = config.action.map(item => { + if (item.execMode) { + item.OpenType = 'funcbutton' + } else if (item.OpenType === 'blank') { + item.OpenType = 'tab' + } + return item + }) + } + + config.Template = 'SubTable' + + return config } \ No newline at end of file -- Gitblit v1.8.0