We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbcafb8 commit e7a8692Copy full SHA for e7a8692
1 file changed
src/locales/useLocale.ts
@@ -1,4 +1,5 @@
1
import { useLocalStorage } from '@vueuse/core';
2
+import type { GlobalConfigProvider } from 'tdesign-vue-next';
3
import { computed } from 'vue';
4
import { useI18n } from 'vue-i18n';
5
@@ -17,7 +18,7 @@ export function useLocale() {
17
18
}
19
20
const getComponentsLocale = computed(() => {
- return i18n.global.getLocaleMessage(locale.value).componentsLocale;
21
+ return i18n.global.getLocaleMessage(locale.value).componentsLocale as GlobalConfigProvider;
22
});
23
24
return {
0 commit comments