From 4c2c3361468f37e3af1a993af8d0185964dccf56 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期四, 05 五月 2022 13:40:41 +0800
Subject: [PATCH] repeated name err msg

---
 src/views/personalCenter/components/SubAccount.vue |   42 +++++++++++++++++++++++++-----------------
 1 files changed, 25 insertions(+), 17 deletions(-)

diff --git a/src/views/personalCenter/components/SubAccount.vue b/src/views/personalCenter/components/SubAccount.vue
index 74eb946..723d23c 100644
--- a/src/views/personalCenter/components/SubAccount.vue
+++ b/src/views/personalCenter/components/SubAccount.vue
@@ -414,29 +414,37 @@
         menuIds: this.ruleForm.menuIds,
         dataIds: this.ruleForm.dataIds,
       };
-      saveSubUser(json).then((res) => {
-        if (res.success) {
-          this.isShowAdd = false;
-          this.isEditing = false;
-          this.findUserList();
-        }
-      });
+      saveSubUser(json)
+        .then((res) => {
+          if (res.success) {
+            this.isShowAdd = false;
+            this.isEditing = false;
+            this.findUserList();
+          } else {
+            this.$notify.error(res.msg);
+          }
+        })
+        .catch((err) => {
+          this.$notify.error(err.message);
+        });
     },
     findUserList() {
       findUserList({
         inputText: this.inputText,
         page: this.page,
         size: this.size,
-      }).then((res) => {
-        if (res.success) {
-          this.dataList = res.data.dataList;
-          this.total = res.data.total
-        }else{
-          this.$notify.error("鍔犺浇瀛愯处鎴峰垪琛ㄥけ璐�")
-        }
-      }).catch((e) => {
-          this.$notify.error(e.msg)
-      });
+      })
+        .then((res) => {
+          if (res.success) {
+            this.dataList = res.data.dataList;
+            this.total = res.data.total;
+          } else {
+            this.$notify.error("鍔犺浇瀛愯处鎴峰垪琛ㄥけ璐�");
+          }
+        })
+        .catch((e) => {
+          this.$notify.error(e.msg);
+        });
     },
     goback() {
       this.isShowAdd = false;

--
Gitblit v1.8.0