From 9795f89ce9db7fb062e30ac00fd595dd39636eee Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 28 Jun 2024 15:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E9=94=81=E5=AE=9A=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/main.js b/src/main.js index aff45d5b..4a99cc45 100644 --- a/src/main.js +++ b/src/main.js @@ -375,19 +375,10 @@ async function VueInit() { } _vm.$store.dispatch('user/logout').then(res => { // window.location.href = `/login` - let dom = document.querySelectorAll('.el-message-box__wrapper'); - for (let i = 0; i < dom.length; i++) { - let item = dom[i]; - let title = item.getAttribute("aria-label"); - if (title === '已锁定' || title === 'Locked') { - document.body.removeChild(item); - let modal = document.querySelectorAll('.v-modal'); - for (let i = 0; i < modal.length; i++) { - let m = modal[i]; - document.body.removeChild(m); - } - } - } + _vm.$msgbox.close(); + isOpen = false + isLock = null + zzSessionStorage.removeItem('isLock') router.push("/login") }).then(() => { _vm.$alert(lang === 'zh' ? '由于您长时间未操作,为保护您的数据安全已强制将您下线,如果需要继续操作请重新登陆!' : 'No operation for a long time non-operation, you have been forced logout to protect data security. If continue to operate, please login again!', { @@ -396,7 +387,7 @@ async function VueInit() { }) } : () => { }, process.env.VUE_APP_LOGOUT_FOR_TIME, - eval(process.env.VUE_APP_LOCK_FOR_PERMISSION) ? () => { + eval(process.env.VUE_APP_LOCK_FOR_PERMISSION) ? () => { var lang = zzSessionStorage.getItem('lang') ? zzSessionStorage.getItem('lang') : 'zh' if (_vm.$route.path === '/ReviewersResearchForm' || _vm.$route.path === '/ReviewersResearch' || _vm.$route.path === '/login' || _vm.$route.path === '/researchForm' || _vm.$route.path === '/researchLogin' || _vm.$route.path === '/email-recompose' || _vm.$route.path === '/recompose' || _vm.$route.path === '/resetpassword' || _vm.$route.path === '/error') { count = 0;