From 79e1455e4ba4f4a7d04a483dda1a354e53921a69 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 04 十一月 2020 19:04:14 +0800
Subject: [PATCH] 2020-11-04

---
 src/menu/components/card/prop-card/index.jsx |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/src/menu/components/card/prop-card/index.jsx b/src/menu/components/card/prop-card/index.jsx
index c7715d5..9fe9948 100644
--- a/src/menu/components/card/prop-card/index.jsx
+++ b/src/menu/components/card/prop-card/index.jsx
@@ -33,19 +33,9 @@
   }
 
   UNSAFE_componentWillMount () {
-    const { card, menu } = this.props
+    const { card } = this.props
 
     if (card.isNew) {
-      let dataName = ''
-      if (card.floor === 1) {
-        while (!dataName) {
-          let _dataName = Utils.getdataName()
-          if (menu.components.filter(com => com.dataName === _dataName).length === 0) {
-            dataName = _dataName
-          }
-        }
-      }
-
       let subcards = null
 
       if (card.config) {
@@ -86,7 +76,7 @@
         format: 'object',   // 缁勪欢灞炴�� - 鏁版嵁鏍煎紡
         pageable: false,    // 缁勪欢灞炴�� - 鏄惁鍙垎椤�
         switchable: true,  // 缁勪欢灞炴�� - 鏁版嵁鏄惁鍙垏鎹�
-        dataName: dataName,
+        dataName: card.dataName || '',
         width: 24,
         name: card.name,
         subtype: card.subtype,

--
Gitblit v1.8.0