perf: perf loading logic

This commit is contained in:
vben
2020-12-04 21:25:33 +08:00
parent 0c2e72d22a
commit f4621cc664
26 changed files with 167 additions and 218 deletions

View File

@@ -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);