perf(i18n): improve circular dependencies

This commit is contained in:
Vben
2021-06-06 23:36:22 +08:00
parent d81481c521
commit d677729acb
8 changed files with 30 additions and 57 deletions

View File

@@ -33,7 +33,7 @@
<!-- action -->
<div :class="`${prefixCls}-action`">
<AppSearch :class="`${prefixCls}-action__item `" />
<AppSearch :class="`${prefixCls}-action__item `" v-if="getShowSearch" />
<ErrorAction v-if="getUseErrorHandle" :class="`${prefixCls}-action__item error-action`" />
@@ -123,6 +123,7 @@
getShowBread,
getShowHeaderLogo,
getShowHeader,
getShowSearch,
} = useHeaderSetting();
const { getShowLocalePicker } = useLocale();
@@ -190,6 +191,7 @@
getIsMixSidebar,
getShowSettingButton,
getShowSetting,
getShowSearch,
};
},
});