在账号长时间未访问,锁定或者退出时,不能展示页面数据
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1a26d3885a
commit
7325760c23
|
|
@ -120,10 +120,10 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
|
this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
|
||||||
Vue.prototype.$openI18n = this.openI18n
|
Vue.prototype.$openI18n = this.openI18n
|
||||||
// this.getIsLock()
|
this.getIsLock()
|
||||||
// DicomEvent.$on("isLock", (isLock) => {
|
DicomEvent.$on("isLock", (isLock) => {
|
||||||
// this.isLock = isLock
|
this.isLock = isLock
|
||||||
// })
|
})
|
||||||
},
|
},
|
||||||
// watch: {
|
// watch: {
|
||||||
// '$route.query': {
|
// '$route.query': {
|
||||||
|
|
|
||||||
10
src/main.js
10
src/main.js
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
// import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent'
|
import DicomEvent from '@/views/trials/trials-panel/reading/dicoms/components/DicomEvent'
|
||||||
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
||||||
// import { createVersionPolling } from "@/utils/version-polling.esm.js";
|
// import { createVersionPolling } from "@/utils/version-polling.esm.js";
|
||||||
import ElementUI, { MessageBox } from 'element-ui'
|
import ElementUI, { MessageBox } from 'element-ui'
|
||||||
|
|
@ -452,7 +452,7 @@ async function VueInit() {
|
||||||
isOpen = false
|
isOpen = false
|
||||||
isLock = null
|
isLock = null
|
||||||
zzSessionStorage.removeItem('isLock')
|
zzSessionStorage.removeItem('isLock')
|
||||||
// DicomEvent.$emit('isLock', false)
|
DicomEvent.$emit('isLock', false)
|
||||||
router.push("/login")
|
router.push("/login")
|
||||||
}).then(() => {
|
}).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!', {
|
// _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!', {
|
||||||
|
|
@ -473,7 +473,7 @@ async function VueInit() {
|
||||||
if (_vm.$route.path === '/login') {
|
if (_vm.$route.path === '/login') {
|
||||||
zzSessionStorage.removeItem('lastWorkbench')
|
zzSessionStorage.removeItem('lastWorkbench')
|
||||||
zzSessionStorage.removeItem('isLock')
|
zzSessionStorage.removeItem('isLock')
|
||||||
// DicomEvent.$emit('isLock', false)
|
DicomEvent.$emit('isLock', false)
|
||||||
isLock = null
|
isLock = null
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
@ -483,7 +483,7 @@ async function VueInit() {
|
||||||
}
|
}
|
||||||
isOpen = true
|
isOpen = true
|
||||||
zzSessionStorage.setItem('isLock', 'true')
|
zzSessionStorage.setItem('isLock', 'true')
|
||||||
// DicomEvent.$emit('isLock', true)
|
DicomEvent.$emit('isLock', true)
|
||||||
_vm.$msgbox({
|
_vm.$msgbox({
|
||||||
title: _vm.$t("env:lock:msgBox:title"),
|
title: _vm.$t("env:lock:msgBox:title"),
|
||||||
confirmButtonText: _vm.$t("env:lock:msgBox:confirmButtonText"),
|
confirmButtonText: _vm.$t("env:lock:msgBox:confirmButtonText"),
|
||||||
|
|
@ -516,7 +516,7 @@ async function VueInit() {
|
||||||
count = 0;
|
count = 0;
|
||||||
isLock = null
|
isLock = null
|
||||||
zzSessionStorage.removeItem('isLock')
|
zzSessionStorage.removeItem('isLock')
|
||||||
// DicomEvent.$emit('isLock', false)
|
DicomEvent.$emit('isLock', false)
|
||||||
localStorage.setItem('count', '0')
|
localStorage.setItem('count', '0')
|
||||||
document.querySelector('#my_username').value = null
|
document.querySelector('#my_username').value = null
|
||||||
document.querySelector('#my_password').value = null
|
document.querySelector('#my_password').value = null
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue