Просмотр исходного кода

!244 update 挂载全局属性改为操作vue模块
Merge pull request !244 from Lau/dev

疯狂的狮子Li 6 месяцев назад
Родитель
Сommit
9c84bf242c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/types/module.d.ts

+ 1 - 1
src/types/module.d.ts

@@ -12,7 +12,7 @@ import type { LanguageType } from '@/lang';
 
 export {};
 
-declare module '@vue/runtime-core' {
+declare module 'vue' {
   interface ComponentCustomProperties {
     // 全局方法声明
     $modal: typeof modal;