Commit a3100471 by caoyanzhi

update: 登录账号变更提示

parent 709b3cc9
......@@ -35,6 +35,7 @@ export default {
const enableAccessControl = res.result && res.result.enableAccessControl;
localStorage.setItem('enableAccessControl', enableAccessControl);
if (localStorage.getItem('m_uId') !== uId) {
localStorage.setItem('m_uId', uId);
// 串号
this.$confirm('当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请重新登录!', '登录账号变更提示', {
confirmButtonText: '重新登录',
......@@ -47,8 +48,6 @@ export default {
.catch(() => {
window.location.href = '/report';
});
} else {
localStorage.setItem('m_uId', uId);
}
}
});
......
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