소스 검색

优化

wulanhaote
liuminjian 4 년 전
부모
커밋
ac0f2d21a0
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. +7
    -1
      src/utils/request.js

+ 7
- 1
src/utils/request.js 파일 보기

@@ -70,7 +70,13 @@ service.interceptors.response.use(res => {
})
.then(() => {
store.dispatch('LogOut').then(() => {
location.href = '/index';
if ('/authenticRight/index'.indexOf(to.path) !== -1) {
location.href = '/authenticRight/login';
} else if ('/homestead/index'.indexOf(to.path) !== -1) {
location.href = '/homestead/login';
} else {
location.href = '/index';
}
})
})
} else if (code === 500) {


불러오는 중...
취소
저장