mo 2 năm trước cách đây
mục cha
commit
e8258c51b6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/utils/request.js

+ 2 - 2
src/utils/request.js

@@ -60,8 +60,8 @@ service.interceptors.response.use(
 
 
       // 401:未登录;
       // 401:未登录;
       if (res.code === 401 || res.code === 403) {
       if (res.code === 401 || res.code === 403) {
-
-        location = window.location.origin;
+        location.reload()
+        // location = window.location.origin;
         // MessageBox.confirm('登录过期请重新登录', '确定登出', {
         // MessageBox.confirm('登录过期请重新登录', '确定登出', {
         //   confirmButtonText: '重新登录',
         //   confirmButtonText: '重新登录',
         //   cancelButtonText: '取消',
         //   cancelButtonText: '取消',