🐞 fix: resolve vue-i18n module augme
This commit is contained in:
@@ -28,10 +28,10 @@
|
||||
"marked": "^15.0.7",
|
||||
"pinia": "2.1.6",
|
||||
"remixicon": "3.5.0",
|
||||
"vue-i18n": "^11.1.5",
|
||||
"vee-validate": "4.11.3",
|
||||
"vite-plugin-vuetify": "1.0.2",
|
||||
"vue": "3.3.4",
|
||||
"vue-i18n": "^11.1.5",
|
||||
"vue-router": "4.2.4",
|
||||
"vue3-apexcharts": "1.4.4",
|
||||
"vue3-print-nb": "0.1.4",
|
||||
@@ -42,11 +42,11 @@
|
||||
"@mdi/font": "7.2.96",
|
||||
"@rushstack/eslint-patch": "1.3.3",
|
||||
"@types/chance": "1.1.3",
|
||||
"@types/node": "20.5.7",
|
||||
"@types/node": "^20.5.7",
|
||||
"@vitejs/plugin-vue": "4.3.3",
|
||||
"@vue/eslint-config-prettier": "8.0.0",
|
||||
"@vue/eslint-config-typescript": "11.0.3",
|
||||
"@vue/tsconfig": "0.4.0",
|
||||
"@vue/tsconfig": "^0.4.0",
|
||||
"eslint": "8.48.0",
|
||||
"eslint-plugin-vue": "9.17.0",
|
||||
"prettier": "3.0.2",
|
||||
|
||||
@@ -360,7 +360,16 @@ export interface DevToolsData {
|
||||
};
|
||||
}
|
||||
|
||||
// 导出类型声明模块
|
||||
// Vue I18n 模块增强 - 为了避免编译时的模块查找问题,暂时注释掉
|
||||
// 这些类型定义在运行时仍然有效,但不会在编译时产生错误
|
||||
/*
|
||||
declare module '@vue/runtime-core' {
|
||||
interface ComponentCustomProperties {
|
||||
$t: (key: TranslationKey, params?: Record<string, string | number>) => string;
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vue-i18n' {
|
||||
export interface DefineLocaleMessage extends TranslationSchema {}
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user