Przeglądaj źródła

取消锁屏的功能

louhangfei 2 lat temu
rodzic
commit
2cb42abd6a
2 zmienionych plików z 5 dodań i 3 usunięć
  1. 3 1
      src/App.vue
  2. 2 2
      src/layout/components/Header/index.vue

+ 3 - 1
src/App.vue

@@ -21,7 +21,9 @@
   const route = useRoute();
   const useLockscreen = useLockscreenStore();
 
-  const isLock = computed(() => useLockscreen.isLock);
+  /** 设置不锁屏幕 */
+  // const isLock = computed(() => useLockscreen.isLock);
+  const isLock = ref(false);
   const lockTime = computed(() => useLockscreen.lockTime);
 
   const zIndex = ref(3000);

+ 2 - 2
src/layout/components/Header/index.vue

@@ -185,7 +185,7 @@
   import { useRoute, useRouter } from 'vue-router';
   import { TABS_ROUTES } from '@/store/mutation-types';
   import { useUserStore } from '@/store/modules/user';
-  import { useLockscreenStore } from '@/store/modules/lockscreen';
+  // import { useLockscreenStore } from '@/store/modules/lockscreen';
   import { useProjectSetting } from '@/hooks/setting/useProjectSetting';
   import { AppSearch } from '@/components/Application/index';
   import ProjectSetting from './ProjectSetting.vue';
@@ -218,7 +218,7 @@
   defineEmits(['update:collapsed']);
 
   const userStore = useUserStore();
-  const useLockscreen = useLockscreenStore();
+  // const useLockscreen = useLockscreenStore();
   const appSearchRef = ref();
   const isRefresh = ref(false);
   const { getDarkTheme } = useDesignSetting();