소스 검색

注释无效操作用户时退出登录逻辑

dusenyao 1 년 전
부모
커밋
9e1d86e526
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/utils/request.js

+ 3 - 3
src/utils/request.js

@@ -55,9 +55,9 @@ service.interceptors.response.use(
         duration: 3 * 1000
       });
 
-      store.dispatch('user/resetSessionID').then(() => {
-        window.location.href = '/';
-      });
+      // store.dispatch('user/resetSessionID').then(() => {
+      //   window.location.href = '/';
+      // });
 
       return Promise.reject(new Error(res.error || 'Error'));
     }