fix: 修复视图分组图标可能被修改的问题
This commit is contained in:
parent
4ad858d5dc
commit
83134fe15e
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user