commit
This commit is contained in:
+6
-6
@@ -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('用户信息已更改,同步数据')
|
||||
|
||||
Reference in New Issue
Block a user