zhouna преди 3 години
родител
ревизия
9a3133d89f
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/api/index.js

+ 2 - 0
src/api/index.js

@@ -61,6 +61,8 @@ function interceptors(param){
         if (code===401) {   //401返回登录
             localStorage.removeItem("token");
             window.location = '/';
+        }else{
+            return res;
         }
     }, function (error) {
         return Promise.reject(error);