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 {