This commit is contained in:
宋伟佳
2021-10-18 19:56:13 +08:00
parent 73cb52770e
commit 9fa4cce190
5 changed files with 61 additions and 12 deletions
+6 -6
View File
@@ -191,7 +191,7 @@
return
}
if (userInfoModifyTimeInLocalStorage === null) {
if (userInfoModifyTimeInLocalStorage === null && webLoginType === 'idm') {
this.$store.dispatch('syncStorageData')
const currentPage = this.$route.name
@@ -206,7 +206,7 @@
});
this.messageForLogin && this.messageForLogin.close()
this.messageForLogin = this.$message({
message: `用户已退出,${this.currentMinute}秒后将跳转到登录页面`,
message: `用户已退出,${this.currentMinute}秒后将跳转到登录1页面`,
type: 'warning'
})
@@ -216,14 +216,14 @@
clearInterval(this.intervalForLogin)
this.loading.close()
this.$router.push('/login')
console.log('切换到登录页面', currentPage)
this.$router.push('/login')
console.log('切换到登录页面', currentPage)
}
this.currentMinute--
this.messageForLogin.message = `用户已退出,${this.currentMinute}秒后将跳转到登录页面`
}, 1000)
}, 0)
} else if (userInfoModifyTime !== userInfoModifyTimeInLocalStorage) {
} else if (userInfoModifyTime !== userInfoModifyTimeInLocalStorage && webLoginType === 'idm') {
this.$store.dispatch('syncStorageData')
console.log('用户信息已更改,同步数据')