From 87d5c9ffb779cf9a2cd72924ef66fe85ce1a77a8 Mon Sep 17 00:00:00 2001 From: tnt group Date: Tue, 6 Sep 2022 15:01:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=9B=9E=E5=A4=8D=E4=B8=8E=E7=BA=BF?= =?UTF-8?q?=E4=B8=8Adev=E6=96=87=E4=BB=B6=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 ++---- src/store/modules/chartEditStore/chartEditStore.ts | 2 +- src/views/chart/hooks/useSync.hook.ts | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index c4b0e1c3..e5a71466 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,7 @@ "build": "vue-tsc --noEmit && vite build", "preview": "vite preview", "new": "plop --plopfile ./plop/plopfile.js", - "postinstall": "husky install", - "lint": "eslint --ext .vue,.js,.jsx,.ts,.tsx ./ --max-warnings 0", - "lint:fix": "eslint --ext .vue,.js,jsx,.ts,.tsx ./ --fix" + "postinstall": "husky install" }, "dependencies": { "@types/color": "^3.0.3", @@ -71,4 +69,4 @@ "vue-echarts": "^6.0.2", "vue-tsc": "^0.28.10" } -} +} \ No newline at end of file diff --git a/src/store/modules/chartEditStore/chartEditStore.ts b/src/store/modules/chartEditStore/chartEditStore.ts index a2be5775..bd2f70ba 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 a448f0e7..09a26aa9 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 {