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

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

上级 4ad858d5
......@@ -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
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论