From 9fa4cce190a59a6fd87d0c8bc18b566e15aba93c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Mon, 18 Oct 2021 19:56:13 +0800 Subject: [PATCH] commit --- src/App.vue | 12 ++--- .../config/pages/mechanismManage/index.vue | 53 ++++++++++++++++++- .../otherBussStandardDetails/index.vue | 4 +- src/pages/home1/components/release/index.vue | 2 +- src/pages/home2/components/release/index.vue | 2 +- 5 files changed, 61 insertions(+), 12 deletions(-) diff --git a/src/App.vue b/src/App.vue index f4d57b343..31060e64e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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('用户信息已更改,同步数据') diff --git a/src/pages/config/pages/mechanismManage/index.vue b/src/pages/config/pages/mechanismManage/index.vue index 60231784e..cf1d1930e 100644 --- a/src/pages/config/pages/mechanismManage/index.vue +++ b/src/pages/config/pages/mechanismManage/index.vue @@ -3,11 +3,26 @@