From 6de5ea0a0c6f06e0321ae41846473118fb85de48 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 20 十月 2022 15:04:24 +0800 Subject: [PATCH] 2022-10-20 --- src/menu/tableshell/index.jsx | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/menu/tableshell/index.jsx b/src/menu/tableshell/index.jsx index 999d732..63fefeb 100644 --- a/src/menu/tableshell/index.jsx +++ b/src/menu/tableshell/index.jsx @@ -57,18 +57,16 @@ const [, drop] = useDrop({ accept: 'menu', drop(item) { - if (item.hasOwnProperty('originalIndex') || item.added) { + if (item.added) { delete item.added // 鍒犻櫎缁勪欢娣诲姞鏍囪 return } let newcard = { uuid: Utils.getuuid(), - type: item.component, - subtype: item.subtype, - config: item.config, - width: item.width || 24, - isNew: true // 鏂版坊鍔犳爣蹇楋紝鐢ㄤ簬鍒濆鍖� + type: 'tabs', + subtype: 'tabs', + isNew: true } let targetId = '' -- Gitblit v1.8.0