Browse Source

错误信息获取

yangc 7 years ago
parent
commit
49858955f5
1 changed files with 1 additions and 2 deletions
  1. 1 2
      pages/searchEnterprise/index.vue

+ 1 - 2
pages/searchEnterprise/index.vue

@@ -41,8 +41,7 @@
               this.showSearchResultStatus = 2
               this.showSearchResultStatus = 2
             }
             }
           }, err => {
           }, err => {
-            console.log(err)
-            this.$message.error('系统错误')
+            this.$message.error(err.response.data || '系统错误')
           })
           })
         }
         }
       }
       }