Browse Source

错误信息获取

yangc 7 năm trước cách đây
mục cha
commit
49858955f5
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      pages/searchEnterprise/index.vue

+ 1 - 2
pages/searchEnterprise/index.vue

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