diff --git a/frontend/src/views/chart/group/Group.vue b/frontend/src/views/chart/group/Group.vue index 8c8bd80dd6..b6d79352d1 100644 --- a/frontend/src/views/chart/group/Group.vue +++ b/frontend/src/views/chart/group/Group.vue @@ -426,7 +426,7 @@ export default { all: this.$t('commons.all'), folder: this.$t('commons.folder') }, - currentNodeData: {}, + currentViewNodeData: {}, currentKey: null } }, @@ -672,8 +672,8 @@ export default { }, nodeClick(data, node) { - this.currentNodeData = data if (data.modelInnerType !== 'group') { + this.currentViewNodeData = data this.$emit('switchComponent', { name: 'ChartEdit', param: data }) } }, @@ -934,8 +934,8 @@ export default { this.searchType = searchTypeInfo }, nodeTypeChange(newType) { - if (this.currentNodeData) { - this.currentNodeData.modelInnerType = newType + if (this.currentViewNodeData) { + this.currentViewNodeData.modelInnerType = newType } } }