From 0227c25e4ed573d3095ada3f9c9a4ba5f18b0de5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 20 一月 2021 10:53:01 +0800
Subject: [PATCH] 2021-01-20

---
 src/menu/components/tabs/tabcomponents/index.jsx |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/menu/components/tabs/tabcomponents/index.jsx b/src/menu/components/tabs/tabcomponents/index.jsx
index 0c48cc1..6bf8943 100644
--- a/src/menu/components/tabs/tabcomponents/index.jsx
+++ b/src/menu/components/tabs/tabcomponents/index.jsx
@@ -96,6 +96,7 @@
         search: '鎼滅储',
         table: '琛ㄦ牸',
         group: '鍒嗙粍',
+        editor: '瀵屾枃鏈�',
         card: '鍗$墖'
       }
       let i = 1
@@ -107,14 +108,6 @@
         }
         i++
       }
-
-      let dataName = ''
-      while (!dataName) {
-        let _dataName = Utils.getdataName()
-        if (config.components.filter(com => com.dataName === _dataName).length === 0) {
-          dataName = _dataName
-        }
-      }
       
       let newcard = {
         uuid: Utils.getuuid(),
@@ -124,7 +117,7 @@
         subtype: item.subtype,
         config: item.config,
         width: item.width || 24,
-        dataName: dataName,
+        dataName: Utils.getdataName(),
         name: name,
         floor: config.floor ? (config.floor + 1) : 2, // 缁勪欢鐨勫眰绾�
         isNew: true                                   // 鏂版坊鍔犳爣蹇楋紝鐢ㄤ簬鍒濆鍖�

--
Gitblit v1.8.0