From 1654c2e3838428eeef6bc04b5e46811cafdaf608 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 10 十月 2022 15:25:58 +0800 Subject: [PATCH] 2022-10-10 --- src/pc/createview/index.jsx | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/pc/createview/index.jsx b/src/pc/createview/index.jsx index 63e233f..45f3a0f 100644 --- a/src/pc/createview/index.jsx +++ b/src/pc/createview/index.jsx @@ -161,7 +161,15 @@ } if (_config.components) { - config.components = MenuUtils.resetConfig(_config.components, {}, res.clearMenu === 'true') + let uuids = {} // 閲嶇疆鍏叡鏁版嵁婧� + if (_config.interfaces && _config.interfaces.length > 0) { + config.interfaces = _config.interfaces.map(inter => { + uuids[inter.uuid] = this.getuuid() + inter.uuid = uuids[inter.uuid] + return inter + }) + } + config.components = MenuUtils.resetConfig(_config.components, uuids, res.clearMenu === 'true') config.tables = _config.tables || [] config.style = _config.style || {} config.statusBarbgColor = _config.statusBarbgColor || '' -- Gitblit v1.8.0