fix: i18n $t 报错
This commit is contained in:
parent
5b7541a03a
commit
9bb7e726ad
9
src/i18n.d.ts
vendored
Normal file
9
src/i18n.d.ts
vendored
Normal 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 }
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user