From 0ecde1c329ef1136f8f2a261c856ea405b327914 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 24 一月 2025 20:22:25 +0800
Subject: [PATCH] 2025-01-24

---
 src/menu/components/share/pastecomponent/index.jsx |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/src/menu/components/share/pastecomponent/index.jsx b/src/menu/components/share/pastecomponent/index.jsx
index f0e89a1..90944e9 100644
--- a/src/menu/components/share/pastecomponent/index.jsx
+++ b/src/menu/components/share/pastecomponent/index.jsx
@@ -10,6 +10,7 @@
 import asyncComponent from '@/utils/asyncComponent'
 // import './index.scss'
 
+const { confirm } = Modal
 const PasteForm = asyncComponent(() => import('@/templates/zshare/pasteform'))
 
 class PasteController extends Component {
@@ -173,17 +174,20 @@
           }
         }
 
-        if (res.field && keys.includes(res.field.toLowerCase())) {
-          notification.warning({
-            top: 92,
-            message: '鎼滅储瀛楁宸插瓨鍦紒',
-            duration: 5
-          })
-          return
-        }
-
-        MKEmitter.emit('plusSearch', config.uuid, res, 'simple')
         this.setState({visible: false})
+        if (res.field && keys.includes(res.field.toLowerCase())) {
+          confirm({
+            title: '鎼滅储瀛楁宸插瓨鍦紒',
+            okText: '鐭ラ亾浜�',
+            cancelText: '鏇挎崲',
+            onOk() {},
+            onCancel() {
+              MKEmitter.emit('plusSearch', config.uuid, res, 'replace')
+            }
+          })
+        } else {
+          MKEmitter.emit('plusSearch', config.uuid, res, 'simple')
+        }
         return
       } else if (type === 'cardcell') {
         config.subcards.push(res)

--
Gitblit v1.8.0