From 92afa84b91a58ca90327fab62f158d6a40cb01d5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 05 二月 2025 22:07:04 +0800 Subject: [PATCH] 2025-02-05 --- src/templates/modalconfig/dragelement/index.jsx | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/templates/modalconfig/dragelement/index.jsx b/src/templates/modalconfig/dragelement/index.jsx index a7fbb53..eb3a147 100644 --- a/src/templates/modalconfig/dragelement/index.jsx +++ b/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({ -- Gitblit v1.8.0