Explorar o código

优化错误信息提示

suntg %!s(int64=8) %!d(string=hai) anos
pai
achega
d44cb4c1a2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      components/register-saler/register/StepThird.vue

+ 2 - 2
components/register-saler/register/StepThird.vue

@@ -434,7 +434,7 @@
             } else {
               this.isSelfRegisterSuccess = false
               this.showLoading = false
-              this.$message.error('企业注册失败,请重新填写信息')
+              this.$message.error(response.data.message || '企业注册失败,请重新填写信息')
             }
           }, err => {
             console.log(err)
@@ -571,7 +571,7 @@
                   this.reflashEnterprise(response.data.data.enuu, baseUrl || '/vendor#/vendor_upload')
                 } else {
                   this.isSelfRegisterSuccess = false
-                  this.$message.error('企业注册失败,请重新填写信息')
+                  this.$message.error(response.data.message || '企业注册失败,请重新填写信息')
                 }
                 this.showLoading = false
               }, err => {