Ben Lin
2024-08-04 b47d3515cadac800e5b38bb1368cb0600f25907a
src/hooks/web/useLockPage.ts
@@ -1,10 +1,10 @@
import { computed, onUnmounted, unref, watchEffect } from 'vue';
import { useThrottleFn } from '@vueuse/core';
import { useAppStore } from '/@/store/modules/app';
import { useLockStore } from '/@/store/modules/lock';
import { useAppStore } from '@/store/modules/app';
import { useLockStore } from '@/store/modules/lock';
import { useUserStore } from '/@/store/modules/user';
import { useUserStore } from '@/store/modules/user';
import { useRootSetting } from '../setting/useRootSetting';
export function useLockPage() {
@@ -32,9 +32,12 @@
    }
    clear();
    timeId = setTimeout(() => {
      lockPage();
    }, lockTime * 60 * 1000);
    timeId = setTimeout(
      () => {
        lockPage();
      },
      lockTime * 60 * 1000,
    );
  }
  function lockPage(): void {