Przeglądaj źródła

修改请求配置

zhaoke 3 lat temu
rodzic
commit
f1dde43f92
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/utils/request.js

+ 1 - 1
src/utils/request.js

@@ -66,7 +66,7 @@ service.interceptors.response.use(
     const res = response.data
 
     // if the custom code is not 20000, it is judged as an error.
-    if (res.code !== 0) {
+    if (res.code != 0) {
       Message({
         message: res.message || 'Error',
         type: 'error',