diff --git a/global.d.ts b/global.d.ts index 22b69f2..eca814b 100644 --- a/global.d.ts +++ b/global.d.ts @@ -4,7 +4,7 @@ import { Router, RouteLocationNormalizedLoaded } from 'vue-router' import { Store } from 'vuex' /** 将第三方变量挂载到每一个 vue 示例中 */ -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $message: Message $store: Store