From 5524cfff956b81fcd1ebeb40ac57924a38be42d8 Mon Sep 17 00:00:00 2001
From: WangHan <wwh_work@126,com>
Date: 星期四, 19 十二月 2024 15:02:17 +0800
Subject: [PATCH] 问题修改

---
 admin-web/src/views/foundation/classification/index.vue |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/admin-web/src/views/foundation/classification/index.vue b/admin-web/src/views/foundation/classification/index.vue
index 774aa37..3fe0c65 100644
--- a/admin-web/src/views/foundation/classification/index.vue
+++ b/admin-web/src/views/foundation/classification/index.vue
@@ -229,20 +229,23 @@
             vm.$modal.msgSuccess(text + '鎴愬姛');
             vm.search();
           }
+        }).catch((err) => {
+          vm.$message.warning(err.msg);
         });
       });
     },
     del(row) {
-      this.$modal
-        .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.categoryName + '"鐨勬満鏋勫悧锛�')
+      var that = this
+      this.$modal.confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.categoryName + '"鐨勬満鏋勫悧锛�')
         .then(function () {
-          finsystenant.del({ id: row.id }).then((res) => {});
-        })
-        .then((res) => {
-          this.$message.success('鍒犻櫎鎴愬姛锛�');
-          this.refreshData();
-        })
-        .catch(() => {});
+          finsystenant.del({ id: row.id }).then((res) => {
+            that.$message.success('鍒犻櫎鎴愬姛锛�');
+            that.refreshData();
+          })
+            .catch((err) => {
+              that.$message.warning(err.msg);
+            });
+      });
     },
     showAdd() {
       if (this.p && this.p) {

--
Gitblit v1.9.1