Browse Source

修改error信息

sunjh 6 years ago
parent
commit
8a0ec70028

+ 2 - 2
src/components/authen/AgencyAuthentication.vue

@@ -114,7 +114,7 @@ import {
 
 export default {
   name: 'AgencyAuthentication',
-  data () {
+  data () {t
     return {
       userId: 0,
       user: {},
@@ -324,7 +324,7 @@ export default {
         notify('success', '上传成功')
         this.$refs['authentication'].validateField('agencyPhoto');
       }).catch(error => {
-        notify('error', error.data.msg)
+        notify('error', error.data)
       })
     },
     //设置服务类型

+ 1 - 1
src/components/authen/AgencyAuthenticationCreate.vue

@@ -300,7 +300,7 @@ export default {
         this.$refs['authentication'].validateField('agencyPhoto');
       }).catch(error => {
         this.hideLoading()
-        notify('error', error.data.msg)
+        notify('error', error.data)
       })
     },
     //设置服务类型

+ 1 - 1
src/components/authen/EnterpriseAuthentication.vue

@@ -278,7 +278,7 @@ export default {
         notify('success', '上传成功')
       }).catch(error => {
         this.hideLoading();
-        notify('error', error.data.msg)
+        notify('error', error.data)
       })
     },
     //

+ 1 - 1
src/components/authen/EnterpriseAuthenticationCreate.vue

@@ -248,7 +248,7 @@ export default {
         this.$refs['authentication'].validateField('businessLicensePhoto');
       }).catch(error => {
         this.hideLoading();
-        notify('error', error.data.msg)
+        notify('error', error.data)
       })
     },
     //

+ 1 - 1
src/components/authen/IndividualAuthentication.vue

@@ -270,7 +270,7 @@ export default {
 
       }).catch(error => {
         this.hideLoading()
-        notify('error', error.data.msg)
+        notify('error', error.data)
       })
     },
     //

+ 1 - 1
src/components/authen/IndividualAuthenticationCreate.vue

@@ -236,7 +236,7 @@ export default {
         this.$refs['authentication'].validateField('IDCardPhoto');
       }).catch(error => {
         this.hideLoading()
-        notify('error', error.data.msg)
+        notify('error', error.data)
       })
     },
     //

+ 3 - 3
src/components/cheat/ProjectAdd.vue

@@ -472,7 +472,7 @@ export default {
         this.createProjectByFormSuccessConfirm()
         console.log(res)
       }).catch(error => {
-        notify('error', error.data.msg)
+        notify('error', error.data)
       })
     },
     // cancelModify () {
@@ -526,7 +526,7 @@ export default {
         console.log(res.data)
         notify('success', '上传成功')
       }).catch(error => {
-        notify('error', error.data.msg)
+        notify('error', error.data)
       })
     },
     uploadApkFile (param) {
@@ -542,7 +542,7 @@ export default {
         console.log(res)
         notify('success', '上传成功')
       }).catch(error => {
-        notify('error', error.data.msg)
+        notify('error', error.data)
       })
     },
     handleDialogClose (done) {