Commit f38a6924 by caoyanzhi

update: 切换账号后清除缓存的权限等数据

parent 2f3e0405
...@@ -51,6 +51,8 @@ export default { ...@@ -51,6 +51,8 @@ export default {
// 两次的uId不等 表示账号有冲突 // 两次的uId不等 表示账号有冲突
if (this.uniqueId !== uId) { if (this.uniqueId !== uId) {
this.$store.commit('changeUniqueId', uId); this.$store.commit('changeUniqueId', uId);
// 切换账号后,不缓存权限数据、菜单数据、面包屑数据
window.notCache = true;
this.$confirm('当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请重新登录!', '登录账号变更提示', { this.$confirm('当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请重新登录!', '登录账号变更提示', {
confirmButtonText: '重新登录', confirmButtonText: '重新登录',
cancelButtonText: '刷新页面', cancelButtonText: '刷新页面',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment