From 6b0e90800f1a34e3ea482ca70eb0180044e1f342 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期一, 20 十月 2025 16:48:22 +0800
Subject: [PATCH] 逻辑优化

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

diff --git a/components/mold.vue b/components/mold.vue
index 80e9cf3..8b76410 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -274,17 +274,14 @@
                         data: JSON.stringify(payload),
                         headers: { 'Content-Type': 'application/json' }
                     });
-                    if (res.data && res.data.outMsg !== undefined) {
+                    if (res.data && res.data.outSum === "0") {
                         uni.showToast({
                             title: res.data.outMsg || '',
                             icon: 'error'
                         });
-                        if (res.data.outSum === "1") {
-                            // 鍏佽缁х画鍚庣画閫昏緫
-                        } else {
-                            return;
-                        }
+                        return;
                     }
+                    else uni.showToast({ title: res.data.outMsg || '' });
                     if (res.status === 0) {
                         await this.fetchFormData();
                     }
@@ -322,17 +319,14 @@
                         data: JSON.stringify(payload),
                         headers: { 'Content-Type': 'application/json' }
                     });
-                    if (res.data && res.data.outMsg !== undefined) {
+                    if (res.data && res.data.outSum === "0") {
                         uni.showToast({
                             title: res.data.outMsg || '',
                             icon: 'error'
                         });
-                        if (res.data.outSum === "1") {
-                            // 鍏佽缁х画鍚庣画閫昏緫
-                        } else {
-                            return;
-                        }
+                        return;
                     }
+                    else uni.showToast({ title: res.data.outMsg || '' });
                     if (res.status === 0) {
                         await this.fetchFormData();
                     }

--
Gitblit v1.9.3