From ecbe0dc46ce2b8f607b9afd063104adeb7f10fe8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 30 三月 2021 15:19:31 +0800 Subject: [PATCH] 2021-03-30 --- src/menu/components/tabs/tabcomponents/index.jsx | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/menu/components/tabs/tabcomponents/index.jsx b/src/menu/components/tabs/tabcomponents/index.jsx index 0c48cc1..7a913bc 100644 --- a/src/menu/components/tabs/tabcomponents/index.jsx +++ b/src/menu/components/tabs/tabcomponents/index.jsx @@ -6,7 +6,7 @@ import Utils from '@/utils/utils.js' import MKEmitter from '@/utils/events.js' -import MenuUtils from '@/menu/utils/menuUtils.js' +import MenuUtils from '@/utils/utils-custom.js' import Card from './card' import './index.scss' @@ -96,6 +96,8 @@ search: '鎼滅储', table: '琛ㄦ牸', group: '鍒嗙粍', + editor: '瀵屾枃鏈�', + carousel: '杞挱', card: '鍗$墖' } let i = 1 @@ -107,14 +109,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 +118,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