提交 83134fe1 authored 作者: wangjiahao's avatar wangjiahao

fix: 修复视图分组图标可能被修改的问题

上级 4ad858d5
...@@ -426,7 +426,7 @@ export default { ...@@ -426,7 +426,7 @@ export default {
all: this.$t('commons.all'), all: this.$t('commons.all'),
folder: this.$t('commons.folder') folder: this.$t('commons.folder')
}, },
currentNodeData: {}, currentViewNodeData: {},
currentKey: null currentKey: null
} }
}, },
...@@ -672,8 +672,8 @@ export default { ...@@ -672,8 +672,8 @@ export default {
}, },
nodeClick(data, node) { nodeClick(data, node) {
this.currentNodeData = data
if (data.modelInnerType !== 'group') { if (data.modelInnerType !== 'group') {
this.currentViewNodeData = data
this.$emit('switchComponent', { name: 'ChartEdit', param: data }) this.$emit('switchComponent', { name: 'ChartEdit', param: data })
} }
}, },
...@@ -934,8 +934,8 @@ export default { ...@@ -934,8 +934,8 @@ export default {
this.searchType = searchTypeInfo this.searchType = searchTypeInfo
}, },
nodeTypeChange(newType) { nodeTypeChange(newType) {
if (this.currentNodeData) { if (this.currentViewNodeData) {
this.currentNodeData.modelInnerType = newType this.currentViewNodeData.modelInnerType = newType
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论