From 17b4637bdbf9f84a1517fc63ed4f15d90f015dba Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 22 Aug 2022 18:35:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20ts=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=8F=90=E7=A4=BA=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/common/sfc.d.ts | 6 +----- template/common/shime-vue.d.ts | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 template/common/shime-vue.d.ts diff --git a/template/common/sfc.d.ts b/template/common/sfc.d.ts index bdd6254..63f8430 100644 --- a/template/common/sfc.d.ts +++ b/template/common/sfc.d.ts @@ -1,8 +1,4 @@ -declare module "*.vue" { - import Vue from 'vue' - export default Vue -} - +import Vue from 'vue' declare module "vue/types/options" { type Hooks = App.AppInstance & Page.PageInstance; interface ComponentOptions extends Hooks { diff --git a/template/common/shime-vue.d.ts b/template/common/shime-vue.d.ts new file mode 100644 index 0000000..dc48246 --- /dev/null +++ b/template/common/shime-vue.d.ts @@ -0,0 +1,4 @@ +declare module "*.vue" { + import Vue from 'vue' + export default Vue +} \ No newline at end of file