fix: i18n $t 报错

This commit is contained in:
菲鸽 2024-01-29 20:29:16 +08:00
parent 5b7541a03a
commit 9bb7e726ad

9
src/i18n.d.ts vendored Normal file
View File

@ -0,0 +1,9 @@
/* eslint-disable no-unused-vars */
export {}
declare module 'vue' {
interface ComponentCustomProperties {
$t: (key: string) => string
$tm: (key: string) => [] | { [p: string]: any }
}
}