Ver código fonte

增加错误提示信息

cgp 2 semanas atrás
pai
commit
bcd8baf1b6
1 arquivos alterados com 3 adições e 2 exclusões
  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.open = true;
         this.title = "添加客户信息";
-      }).catch(() => {
-        this.$modal.msgError("获取销售与医生信息失败");
+      }).catch(error => {
+        const msg = error?.message || error?.msg || "获取销售与医生信息失败";
+        this.$modal.msgError(msg);
       });
     },
     handleUpdate(row) {