diff --git a/src/components/LockScreen/index.vue b/src/components/LockScreen/index.vue index 5e7f9339..2c3eec46 100644 --- a/src/components/LockScreen/index.vue +++ b/src/components/LockScreen/index.vue @@ -2,7 +2,6 @@ import { ref, toRaw, onMounted, onUnmounted } from 'vue'; import useI18n from '@/hooks/useI18n'; import { message } from 'ant-design-vue/lib'; -import { getToken } from '@/plugins/auth-token'; import useUserStore from '@/store/modules/user'; import useLockedStore from '@/store/modules/locked'; import { getConfigKey } from '@/api/system/config'; @@ -68,7 +67,8 @@ onMounted(() => { window.addEventListener('mousemove', resetTimeout); window.addEventListener('keydown', resetTimeout); } - // 本地锁定同时是登录状态 + console.log(lockedStore.type) + // 本地锁定类型设置 lockedStore.fnLock(lockedStore.type); }); });