From 9e21a1d036f7a7383b2751524bb5222e602fe58d Mon Sep 17 00:00:00 2001 From: tnt group Date: Thu, 1 Sep 2022 17:41:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=87=A0=E5=A4=84=20e?= =?UTF-8?q?slint=20=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tips/MacOsControlBtn/index.vue | 6 ++++-- src/store/modules/chartEditStore/chartEditStore.ts | 2 +- src/views/chart/hooks/useSync.hook.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Tips/MacOsControlBtn/index.vue b/src/components/Tips/MacOsControlBtn/index.vue index 980454d0..fbfd2c18 100644 --- a/src/components/Tips/MacOsControlBtn/index.vue +++ b/src/components/Tips/MacOsControlBtn/index.vue @@ -37,7 +37,9 @@ const props = defineProps({ hidden: { request: false, type: Array, - default: [] + default() { + return [] + } }, // 使用全屏功能 narrow: { @@ -76,7 +78,7 @@ const btnList: { icon: RemoveIcon }, { - title: isFull ? '缩小' : '放大', + title: isFull.value ? '缩小' : '放大', key: props.narrow ? 'fullResize' : 'resize', icon: ResizeIcon } diff --git a/src/store/modules/chartEditStore/chartEditStore.ts b/src/store/modules/chartEditStore/chartEditStore.ts index bd2f70ba..a2be5775 100644 --- a/src/store/modules/chartEditStore/chartEditStore.ts +++ b/src/store/modules/chartEditStore/chartEditStore.ts @@ -600,7 +600,7 @@ export const useChartEditStore = defineStore({ ids.push(item.id) }) } else { - ;(historyData[0] as CreateComponentGroupType).groupList.forEach(item => { + (historyData[0] as CreateComponentGroupType).groupList.forEach(item => { ids.push(item.id) }) } diff --git a/src/views/chart/hooks/useSync.hook.ts b/src/views/chart/hooks/useSync.hook.ts index 09a26aa9..a448f0e7 100644 --- a/src/views/chart/hooks/useSync.hook.ts +++ b/src/views/chart/hooks/useSync.hook.ts @@ -35,7 +35,7 @@ export const useSync = () => { } if (e.isGroup) { - ;(e as CreateComponentGroupType).groupList.forEach(groupItem => { + (e as CreateComponentGroupType).groupList.forEach(groupItem => { intComponent(groupItem) }) } else {