浏览代码

登陆暂注释

panxiandiao_i 5 年之前
父节点
当前提交
d2bc5cce3f
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/utils/request.js

+ 9 - 9
src/utils/request.js

@@ -122,15 +122,15 @@ service.interceptors.response.use(
         duration: 5 * 1000
       })
     } else {
-      error.message = '登录中'
-      Message({
-        message: error.message,
-        type: 'warning',
-        duration: 5 * 1000
-      })
-      if (location.href.indexOf('localhost') < 0) {
-        location.href = 'http://10.179.209.19:8899/'
-      }
+      // error.message = '登录中'
+      // Message({
+      //   message: error.message,
+      //   type: 'warning',
+      //   duration: 5 * 1000
+      // })
+      // if (location.href.indexOf('localhost') < 0) {
+      //   location.href = 'http://10.179.209.19:8899/'
+      // }
     }
     return Promise.reject(error)
   }