king
2019-12-31 46f59e30133c25f1f01074b1c92445f9e85b8c98
src/templates/comtableconfig/tabdragelement/index.jsx
@@ -62,12 +62,12 @@
      const { index: overIndex } = findCard(`${targetId}`)
      let targetIndex = overIndex
      if (!target) {
      // if (!target) {
        targetIndex++
      }
      if (targetIndex < 0) {
        targetIndex = 0
      }
      // }
      // if (targetIndex < 0) {
      //   targetIndex = 0
      // }
      const _cards = update(cards, { $splice: [[targetIndex, 0, newcard]] })
      setCards(_cards)