Sfoglia il codice sorgente

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

lau 6 mesi fa
parent
commit
b89e9cee7f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;