//解决:切换帐号时上一帐号权限会影响下一帐号
import { resetRouter } from '@/router'
// 删除用户信息与token
logout(state) {
state.token = ''
state.userInfo = ''
// 重置路由
resetRouter()
}
标签:帐号,state,js,token,user,resetRouter,store
From: https://www.cnblogs.com/strundent/p/16882804.html