This commit is contained in:
liushuai
2020-06-04 17:45:34 +08:00
parent cef05b6165
commit 6966adb952
12 changed files with 213 additions and 126 deletions

View File

@@ -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('此账号登录失效,请重新登录')