更新
This commit is contained in:
@@ -38,9 +38,10 @@ const service = axios.create({
|
||||
service.interceptors.request.use(config => {
|
||||
if (config.data.name !== '菜单系统模块_用户名密码_查询数据_new2' && config.data.name !== '菜单系统模块_获取角色模块_查询数据') {
|
||||
const id = Cookies.get('id')
|
||||
if (id) {
|
||||
if (id !== 'undefined') {
|
||||
console.log(id, 123)
|
||||
} else {
|
||||
console.log(123)
|
||||
store.dispatch('FedLogOut').then(() => {
|
||||
location.reload() // 为了重新实例化vue-router对象 避免bug
|
||||
alert('此账号登录失效,请重新登录')
|
||||
|
||||
Reference in New Issue
Block a user