From 5fba293245845bb05d753d0885abcd5a9a61e267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Fri, 12 Aug 2022 20:46:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86ts=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/hooks/useTargetData.hook.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.ts b/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.ts index 7347a78c..0fde624e 100644 --- a/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.ts +++ b/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.ts @@ -1,11 +1,11 @@ import { computed, Ref } from 'vue' -import { CreateComponentType } from '@/packages/index.d' +import { CreateComponentType, CreateComponentGroupType } from '@/packages/index.d' import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' // 获取当前对象数据 export const useTargetData = () => { const chartEditStore = useChartEditStore() - const targetData: Ref = computed(() => { + const targetData: Ref = computed(() => { const list = chartEditStore.getComponentList const targetIndex = chartEditStore.fetchTargetIndex() return list[targetIndex]