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/views/pcdesign/index.jsx |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx
index 17f63bf..87c59d9 100644
--- a/src/views/pcdesign/index.jsx
+++ b/src/views/pcdesign/index.jsx
@@ -764,7 +764,15 @@
           }
         }
       } else {
-        config.components = MenuUtils.resetConfig(config.components, {}, urlParam.clearMenu)
+        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, urlParam.clearMenu)
         config.enabled = false
         message.success('澶嶅埗鎴愬姛锛屼繚瀛樺悗鐢熸晥銆�')
       }

--
Gitblit v1.8.0