wenhongquan 3 years ago
parent
commit
563804dc09
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/utils/request.js

+ 2 - 2
src/utils/request.js

@@ -87,7 +87,7 @@ service.interceptors.response.use(res => {
                     store.dispatch('LogOut').then(() => {
                         // 如果是登录页面不需要重新加载
                         if (window.location.hash.indexOf("#/login") != 0) {
-                            location.href = '/index';
+                            location.href = '/#/index';
                         }
                     })
                 }).catch(() => {
@@ -180,4 +180,4 @@ export function downloadGet(url, params, filename) {
     })
 }
 
-export default service
+export default service