Explorar o código

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

lau hai 6 meses
pai
achega
b89e9cee7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;