From b42a3477b6710547a1894f431e06114566dba729 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期一, 20 十月 2025 14:18:46 +0800
Subject: [PATCH] 报错优化

---
 components/mold.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/components/mold.vue b/components/mold.vue
index 49eb5c6..b00a15d 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -275,7 +275,11 @@
                         headers: { 'Content-Type': 'application/json' }
                     });
                     if (res.data && res.data.outMsg) {
-                        this.$showMessage(res.data.outMsg);
+                        if (res.data.outMsg.includes('閲嶅涓婁笅鍒�')) {
+                            this.$showMessage(res.data.outMsg, { type: 'error' });
+                        } else {
+                            this.$showMessage(res.data.outMsg);
+                        }
                     } else if (res.status === 0) {
                         this.$showMessage('涓婂垁鎻愪氦鎴愬姛');
                     } else {
@@ -319,7 +323,11 @@
                         headers: { 'Content-Type': 'application/json' }
                     });
                     if (res.data && res.data.outMsg) {
-                        this.$showMessage(res.data.outMsg);
+                        if (res.data.outMsg.includes('閲嶅涓婁笅鍒�')) {
+                            this.$showMessage(res.data.outMsg, { type: 'error' });
+                        } else {
+                            this.$showMessage(res.data.outMsg);
+                        }
                     } else if (res.status === 0) {
                         this.$showMessage('涓嬪垁鎻愪氦鎴愬姛');
                     } else {

--
Gitblit v1.9.3