This commit is contained in:
liushuai
2020-06-08 17:57:49 +08:00
parent 6966adb952
commit fa5f12d664
16 changed files with 679 additions and 87 deletions

View File

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