瀏覽代碼

优化

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(() => { .then(() => {
store.dispatch('LogOut').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) { } else if (code === 500) {


Loading…
取消
儲存