|
@@ -45,7 +45,8 @@ service.interceptors.response.use(
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
store.dispatch('FedLogOut').then(() => {
|
|
store.dispatch('FedLogOut').then(() => {
|
|
- location.reload()// 为了重新实例化vue-router对象 避免bug
|
|
|
|
|
|
+ // location.reload()// 为了重新实例化vue-router对象 避免bug
|
|
|
|
+ location.href = window.location.hostname;
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|