wenhongquan 3 년 전
부모
커밋
563804dc09
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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