Merge pull request #4242 from dataease/pr@dev_memory_component

Pr@dev memory component
This commit is contained in:
dataeaseShu 2022-12-29 18:21:01 +08:00 committed by GitHub
commit 3b7f39c7c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,9 @@ export default {
res.data.name = this.current.label
res.data.type = this.current.queryType
const arr = res.data ? [res.data] : []
this.current = { num: id, label: name, queryType: 'datasource' }
if (id) {
this.current = { num: id, label: name, queryType: 'datasource' }
}
this.treeData = []
this.dfsTree(arr, id)
this.initEchart()