mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 16:46:19 +08:00
feat: add permissionCacheType setting
This commit is contained in:
@@ -23,7 +23,7 @@ export function useTimeoutFn(handle: Fn<any>, wait: number) {
|
||||
export function useTimeoutRef(wait: number) {
|
||||
const readyRef = ref(false);
|
||||
|
||||
let timer: ReturnType<typeof setTimeout> | undefined;
|
||||
let timer: TimeoutHandle;
|
||||
function stop(): void {
|
||||
readyRef.value = false;
|
||||
timer && window.clearTimeout(timer);
|
||||
|
@@ -7,7 +7,7 @@ import { appStore } from '/@/store/modules/app';
|
||||
export function useTransitionSetting() {
|
||||
const getTransitionSetting = computed(() => appStore.getProjectConfig.transitionSetting);
|
||||
|
||||
const getEnableTransition = computed(() => unref(getTransitionSetting).enable);
|
||||
const getEnableTransition = computed(() => unref(getTransitionSetting)?.enable);
|
||||
|
||||
const getOpenNProgress = computed(() => unref(getTransitionSetting)?.openNProgress);
|
||||
|
||||
|
@@ -5,7 +5,7 @@ import { appStore } from '/@/store/modules/app';
|
||||
import { userStore } from '/@/store/modules/user';
|
||||
|
||||
export function useLockPage() {
|
||||
let timeId: ReturnType<typeof setTimeout>;
|
||||
let timeId: TimeoutHandle;
|
||||
|
||||
function clear(): void {
|
||||
window.clearTimeout(timeId);
|
||||
|
Reference in New Issue
Block a user