From f6a1ab6a58215cf7546976a86eb6face1a7be32f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 30 七月 2021 15:37:17 +0800
Subject: [PATCH] 2021-07-30

---
 src/mob/components/menubar/normal-menubar/index.jsx |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/mob/components/menubar/normal-menubar/index.jsx b/src/mob/components/menubar/normal-menubar/index.jsx
index 8603277..89ed8ff 100644
--- a/src/mob/components/menubar/normal-menubar/index.jsx
+++ b/src/mob/components/menubar/normal-menubar/index.jsx
@@ -125,6 +125,11 @@
 
     card.subMenus = card.subMenus.map(item => {
       if (item.uuid === cell.uuid) return cell
+      if (cell.oriuuid && item.uuid === cell.oriuuid) {
+        delete cell.oriuuid
+
+        return cell
+      }
       return item
     })
 
@@ -247,7 +252,7 @@
           <div className="mk-popover-control">
             <Icon className="plus" title="娣诲姞鑿滃崟" onClick={this.addMenu} type="plus" />
             <WrapComponent config={card} updateConfig={this.updateComponent} />
-            <CopyComponent type="normalmenu" card={card}/>
+            <CopyComponent type="menubar" card={card}/>
             <PasteComponent config={card} options={['menucell']} updateConfig={this.updateComponent} />
             <Icon className="style" title="璋冩暣鏍峰紡" onClick={this.changeStyle} type="font-colors" />
             <UserComponent config={card}/>

--
Gitblit v1.8.0