fix: $t 报错
This commit is contained in:
parent
e396f9bf72
commit
4c968a7eb1
8
src/types/i18n.d.ts
vendored
Normal file
8
src/types/i18n.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export {}
|
||||
|
||||
declare module 'vue' {
|
||||
interface ComponentCustomProperties {
|
||||
$t: (key: string, opt?: Record<string, any>) => string
|
||||
$tm: (key: string, opt?: Record<string, any>) => [] | { [p: string]: any }
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user