From a82d726906f0264b96a5b1a82d932d0c3c38714e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 05 一月 2021 18:30:21 +0800 Subject: [PATCH] 2021-01-05 --- src/menu/components/tabs/tabcomponents/index.jsx | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-) diff --git a/src/menu/components/tabs/tabcomponents/index.jsx b/src/menu/components/tabs/tabcomponents/index.jsx index 0c48cc1..ece6a40 100644 --- a/src/menu/components/tabs/tabcomponents/index.jsx +++ b/src/menu/components/tabs/tabcomponents/index.jsx @@ -107,14 +107,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 +116,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