Commit f35b1957 by caoyanzhi

update: 登录账号变更提示

parent 01928313
......@@ -50,17 +50,18 @@ export default {
const uId = res.data.result && res.data.result.userId;
// 两次的uId不等 表示账号有冲突
if (this.uniqueId !== uId) {
this.$confirm('当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请退出重新登录!', '登录账号变更提示', {
confirmButtonText: '退出重新登录',
this.$store.commit('changeUniqueId', uId);
this.$confirm('当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请重新登录!', '登录账号变更提示', {
confirmButtonText: '重新登录',
cancelButtonText: '刷新页面',
type: 'error'
}).then(() => {
this.laout();
window.location.reload();
}).catch(() => {
this.laout();
window.location.reload();
});
})
.then(() => {
window.location.href = '/gic-web/#/login';
})
.catch(() => {
window.location.href = '/report';
});
}
}
});
......
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