瀏覽代碼

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

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'));
     }