Commit 05529a64 by caoyanzhi

update: 登录账号变更提示

parent 2468c473
......@@ -53,9 +53,9 @@ export default {
this.axios.get(`${this.baseUrl}/api-auth/get-login-user-info?requestProject=member`).then(res => {
if (res.data.errorCode == 0) {
const uId = res.data.result && res.data.result.userId;
this.$store.commit('changeUniqueId', uId);
// 两次的uId不等 表示账号有冲突
if (this.uniqueId !== uId) {
this.$store.commit('changeUniqueId', uId);
this.$confirm('当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请重新登录!', '登录账号变更提示', {
confirmButtonText: '重新登录',
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