[fix 菜单权限] 取消权限后重新登录还能访问已经没有权限的菜单
This commit is contained in:
@@ -166,7 +166,8 @@ export default {
|
|||||||
// update-begin author:wangshuai date:20200601 for: 退出登录跳转登录页面
|
// update-begin author:wangshuai date:20200601 for: 退出登录跳转登录页面
|
||||||
that.$router.push({ path: '/user/login' })
|
that.$router.push({ path: '/user/login' })
|
||||||
// update-end author:wangshuai date:20200601 for: 退出登录跳转登录页面
|
// update-end author:wangshuai date:20200601 for: 退出登录跳转登录页面
|
||||||
//window.location.reload()
|
// 退出登录必须要刷新页面,否则会保留上一个用户的菜单权限
|
||||||
|
window.location.reload()
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
that.$message.error({
|
that.$message.error({
|
||||||
title: '错误',
|
title: '错误',
|
||||||
|
|||||||
Reference in New Issue
Block a user