Преглед на файлове

增加错误提示信息

cgp преди 2 седмици
родител
ревизия
bcd8baf1b6
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      src/views/qw/companyCustomer/index.vue

+ 3 - 2
src/views/qw/companyCustomer/index.vue

@@ -420,8 +420,9 @@ export default {
         this.form.doctorName = data.doctorName;
         this.form.doctorName = data.doctorName;
         this.open = true;
         this.open = true;
         this.title = "添加客户信息";
         this.title = "添加客户信息";
-      }).catch(() => {
-        this.$modal.msgError("获取销售与医生信息失败");
+      }).catch(error => {
+        const msg = error?.message || error?.msg || "获取销售与医生信息失败";
+        this.$modal.msgError(msg);
       });
       });
     },
     },
     handleUpdate(row) {
     handleUpdate(row) {