king
2025-02-05 92afa84b91a58ca90327fab62f158d6a40cb01d5
src/templates/modalconfig/dragelement/index.jsx
@@ -2,7 +2,7 @@
import { useDrop } from 'react-dnd'
import { is, fromJS } from 'immutable'
import update from 'immutability-helper'
import { Col } from 'antd'
import { Col, message } from 'antd'
import Utils from '@/utils/utils.js'
import Card from './card'
import './index.scss'
@@ -72,11 +72,15 @@
    oInput.style.display = 'none'
    document.body.removeChild(oInput)
    const _cards = update(cards, { $splice: [[overIndex + 1, 0, _card]] })
    setCards(_cards)
    handleList(_cards, _card)
    if (window.GLOB.CopyOnly) {
      message.success('复制成功。')
    } else {
      const _cards = update(cards, { $splice: [[overIndex + 1, 0, _card]] })
      setCards(_cards)
      handleList(_cards, _card)
    }
  }
  const [, drop] = useDrop({