소스 검색

增加错误提示信息

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.open = true;
         this.title = "添加客户信息";
-      }).catch(() => {
-        this.$modal.msgError("获取销售与医生信息失败");
+      }).catch(error => {
+        const msg = error?.message || error?.msg || "获取销售与医生信息失败";
+        this.$modal.msgError(msg);
       });
     },
     handleUpdate(row) {