|
|
@@ -22,7 +22,6 @@ import TimerUtils from '@/utils/timer/timerUtil';
|
|
|
import { Modal } from 'ant-design-vue';
|
|
|
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
|
|
import { defineComponent, onMounted, provide, ref, watchEffect } from 'vue';
|
|
|
-
|
|
|
let lastTime = new Date().getTime();
|
|
|
|
|
|
// 设置太久没有操作界面,自动退出界面功能
|
|
|
@@ -79,15 +78,11 @@ export default defineComponent({
|
|
|
eventBus.$on('logout', () => {
|
|
|
tip.value = '跳转中...';
|
|
|
spinning.value = true;
|
|
|
- TimerUtils.setTimeout(
|
|
|
- () => {
|
|
|
- TimerUtils.clearAll();
|
|
|
- spinning.value = false;
|
|
|
- logout();
|
|
|
- },
|
|
|
- 1000,
|
|
|
- 'logoutTimer'
|
|
|
- );
|
|
|
+
|
|
|
+ window.setTimeout(() => {
|
|
|
+ spinning.value = false;
|
|
|
+ logout();
|
|
|
+ }, 1000)
|
|
|
});
|
|
|
onMounted(() => {
|
|
|
setIcon();
|