Parcourir la source

优化

wulanhaote
liuminjian il y a 3 ans
Parent
révision
ac0f2d21a0
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. +7
    -1
      src/utils/request.js

+ 7
- 1
src/utils/request.js Voir le fichier

@@ -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) {


Chargement…
Annuler
Enregistrer