From 46f59e30133c25f1f01074b1c92445f9e85b8c98 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 31 十二月 2019 15:58:37 +0800 Subject: [PATCH] 2019-12-31 --- src/templates/comtableconfig/tabdragelement/index.jsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/templates/comtableconfig/tabdragelement/index.jsx b/src/templates/comtableconfig/tabdragelement/index.jsx index e81ad5e..7db819c 100644 --- a/src/templates/comtableconfig/tabdragelement/index.jsx +++ b/src/templates/comtableconfig/tabdragelement/index.jsx @@ -62,12 +62,12 @@ const { index: overIndex } = findCard(`${targetId}`) let targetIndex = overIndex - if (!target) { - targetIndex++ - } - if (targetIndex < 0) { - targetIndex = 0 - } + // if (!target) { + targetIndex++ + // } + // if (targetIndex < 0) { + // targetIndex = 0 + // } const _cards = update(cards, { $splice: [[targetIndex, 0, newcard]] }) setCards(_cards) -- Gitblit v1.8.0