From 54d33bbc7d7221ef286093e33795225cb7b86774 Mon Sep 17 00:00:00 2001 From: allworldg <944937881@qq.com> Date: Wed, 1 Jan 2025 14:28:53 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/types/func.ts.=20=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E4=BD=BF=E7=94=A8declare=20module=20'@vue/runtime-cor?= =?UTF-8?q?e'{=20interface=20ComponentCustomProperties=20{...}=20}?= =?UTF-8?q?=EF=BC=8C=E5=88=99=E5=85=A8=E5=B1=80=E4=BD=BF=E7=94=A8vue-18n?= =?UTF-8?q?=E7=9A=84$t=E6=97=B6typescript=E4=BC=9A=E6=8A=A5=E9=94=99?= =?UTF-8?q?=EF=BC=9A=20Property=20'$t'=20does=20not=20exist=20on=20type=20?= =?UTF-8?q?'CreateComponentPublicInstanceWithMixins,=20{=20shortcutCard:=20DefineComponent<{},=20{},=20any>;=20?= =?UTF-8?q?favoriteRoutes:=20Ref;=20handleRoute:=20(path:?= =?UTF-8?q?=20string)=20=3D>=20void;=20handleCloseFavorite:=20(item:=20any?= =?UTF-8?q?)=20=3D>=20void;=20},=20...=2023=20more=20...,=20{}>'.ts-plugin?= =?UTF-8?q?(2339).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 因水平有限,还不清楚原因和原理。 Signed-off-by: allworldg <944937881@qq.com> --- src/types/func.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/func.ts b/src/types/func.ts index 73b85644..1e3c6b5b 100644 --- a/src/types/func.ts +++ b/src/types/func.ts @@ -2,7 +2,7 @@ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars import { ComponentCustomProperties } from 'vue'; -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { parseTime: Function; parseDate: Function; -- Gitee