Parcourir la source

update 挂载全局属性改为操作vue模块

lau il y a 6 mois
Parent
commit
b89e9cee7f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;