fix: 修复vscode全局属性ts爆红问题

参照vuejs官方文档,[扩展全局属性](https://cn.vuejs.org/guide/typescript/options-api.html#augmenting-global-properties),
```ts
declare module 'vue' {
  interface ComponentCustomProperties {
    $http: typeof axios
    $translate: (key: string) => string
  }
}
```

Signed-off-by: dhb52 <dhb52@126.com>
This commit is contained in:
dhb52 2024-01-03 03:36:32 +00:00 committed by Gitee
parent cc9b67d467
commit 4fa589de2c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -9,7 +9,7 @@ import type { addDateRange, handleTree, selectDictLabel, selectDictLabels, parse
import type { getConfigKey, updateConfigByKey } from '@/api/system/config';
import type { download as rd } from '@/utils/request';
declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
// 全局方法声明
$modal: typeof modal;