From 0c3ccebfe9598ed4aa1c15808f96742a67b014b9 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 13 Mar 2025 14:10:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E7=9B=AE=E6=A0=87=E6=98=AF=E7=A9=BA=E4=BB=AA?= =?UTF-8?q?=E8=A1=A8=E6=9D=BF=E6=88=96=E8=80=85=E5=90=AB=E6=9C=89=E7=A9=BA?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6=E6=97=B6=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/modules/data-visualization/dvMain.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts index d45777bcf6..f9bd0dbd5b 100644 --- a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts +++ b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts @@ -1012,7 +1012,7 @@ export const dvMainStore = defineStore('dataVisualization', { this.trackFilterCursor(element, checkQDList, trackInfo, preActiveComponentIds, viewId) this.componentData[indexOuter] = element } else if (element.component === 'Group') { - element.propValue.forEach((groupItem, index) => { + element.propValue?.forEach((groupItem, index) => { this.trackFilterCursor( groupItem, checkQDList, @@ -1023,7 +1023,7 @@ export const dvMainStore = defineStore('dataVisualization', { element.propValue[index] = groupItem }) } else if (element.component === 'DeTabs') { - element.propValue.forEach(tabItem => { + element.propValue?.forEach(tabItem => { tabItem.componentData.forEach((tabComponent, index) => { this.trackFilterCursor( tabComponent, @@ -1050,12 +1050,12 @@ export const dvMainStore = defineStore('dataVisualization', { this.trackWebFilterCursor(element, params) this.componentData[index] = element } else if (element.component === 'Group') { - element.propValue.forEach((groupItem, index) => { + element.propValue?.forEach((groupItem, index) => { this.trackWebFilterCursor(groupItem, params) element.propValue[index] = groupItem }) } else if (element.component === 'DeTabs') { - element.propValue.forEach(tabItem => { + element.propValue?.forEach(tabItem => { tabItem.componentData.forEach((tabComponent, index) => { this.trackWebFilterCursor(tabComponent, params) tabItem.componentData[index] = tabComponent @@ -1122,7 +1122,7 @@ export const dvMainStore = defineStore('dataVisualization', { ) this.componentData[index] = element } else if (element.component === 'Group') { - element.propValue.forEach((groupItem, index) => { + element.propValue?.forEach((groupItem, index) => { this.trackOuterFilterCursor( groupItem, params, @@ -1134,7 +1134,7 @@ export const dvMainStore = defineStore('dataVisualization', { element.propValue[index] = groupItem }) } else if (element.component === 'DeTabs') { - element.propValue.forEach(tabItem => { + element.propValue?.forEach(tabItem => { tabItem.componentData.forEach((tabComponent, index) => { this.trackOuterFilterCursor( tabComponent, @@ -1235,7 +1235,7 @@ export const dvMainStore = defineStore('dataVisualization', { } if (element.component === 'VQuery') { const defaultValueMap = {} - element.propValue.forEach(filterItem => { + element.propValue?.forEach(filterItem => { if (filterItem.id === targetViewId) { let queryParams = paramValue if (!['1', '7'].includes(filterItem.displayType)) { @@ -1365,7 +1365,7 @@ export const dvMainStore = defineStore('dataVisualization', { preActiveComponentIds.includes(element.id) || preActiveComponentIds.push(element.id) } if (element.component === 'VQuery') { - element.propValue.forEach(filterItem => { + element.propValue?.forEach(filterItem => { if (filterItem.id === targetViewId) { let queryParams = paramValue if (!['1', '7'].includes(filterItem.displayType)) {