Skip to content

Commit e7a8692

Browse files
committed
types: 修正多语言类型
1 parent cbcafb8 commit e7a8692

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/locales/useLocale.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useLocalStorage } from '@vueuse/core';
2+
import type { GlobalConfigProvider } from 'tdesign-vue-next';
23
import { computed } from 'vue';
34
import { useI18n } from 'vue-i18n';
45

@@ -17,7 +18,7 @@ export function useLocale() {
1718
}
1819

1920
const getComponentsLocale = computed(() => {
20-
return i18n.global.getLocaleMessage(locale.value).componentsLocale;
21+
return i18n.global.getLocaleMessage(locale.value).componentsLocale as GlobalConfigProvider;
2122
});
2223

2324
return {

0 commit comments

Comments
 (0)