mirror of
https://gitcode.com/gh_mirrors/vue/vue-vben-admin
synced 2026-09-20 02:59:16 +00:00
perf: perf loading logic
This commit is contained in:
@@ -11,8 +11,8 @@ export function useTransitionSetting() {
|
||||
|
||||
const getOpenNProgress = computed(() => unref(getTransitionSetting)?.openNProgress);
|
||||
|
||||
const getOpenPageLoading = computed(() => {
|
||||
return unref(getTransitionSetting)?.openPageLoading && unref(getEnableTransition);
|
||||
const getOpenPageLoading = computed((): boolean => {
|
||||
return !!unref(getTransitionSetting)?.openPageLoading;
|
||||
});
|
||||
|
||||
const getBasicTransition = computed(() => unref(getTransitionSetting)?.basicTransition);
|
||||
|
||||
Reference in New Issue
Block a user