From 83191d36e069e85502825e26e33daa1ec114ed74 Mon Sep 17 00:00:00 2001 From: lipenghui Date: Thu, 25 Jan 2024 18:47:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E4=B8=ADref=E7=9A=84ts=E7=B1=BB=E5=9E=8B=E5=A3=B0=E6=98=8E;?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E9=85=8D=E7=BD=AE=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppTaskMenuList/index.d.ts | 10 +++++----- src/components/AppTaskMenuList/index.vue | 11 ++++++++--- src/views/task/index.vue | 9 +++++---- vite.config.ts | 2 ++ 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/components/AppTaskMenuList/index.d.ts b/src/components/AppTaskMenuList/index.d.ts index 85c6f85..e8f16eb 100644 --- a/src/components/AppTaskMenuList/index.d.ts +++ b/src/components/AppTaskMenuList/index.d.ts @@ -1,10 +1,10 @@ import type { Ref } from 'vue' -interface Task { - task1: Ref - task2: Ref - task3: Ref - task4: Ref +interface Task { + [key: string]: Ref + // task2: Ref + // task3: Ref + // task4: Ref } interface ListType { title: string diff --git a/src/components/AppTaskMenuList/index.vue b/src/components/AppTaskMenuList/index.vue index 73b1664..052ea65 100644 --- a/src/components/AppTaskMenuList/index.vue +++ b/src/components/AppTaskMenuList/index.vue @@ -1,12 +1,13 @@