fix relation tree

This commit is contained in:
pycook
2019-12-10 15:35:59 +08:00
parent 2a420225e2
commit 4a744dcad9
4 changed files with 11 additions and 6 deletions

View File

@@ -174,8 +174,8 @@ export default {
this.setColumnWidth()
console.log('set column')
}, 100)
this.loadNoRoot(this.treeKeys[this.treeKeys.length - 1], level)
}
this.loadNoRoot(this.treeKeys[this.treeKeys.length - 1], level)
return result
})
}
@@ -243,7 +243,7 @@ export default {
}
})
await Promise.all(promises)
if (showTypeIds.length && showTypeIds.length !== this.showTypeIds.length) {
if (showTypeIds.length && showTypeIds.sort().join(',') !== this.showTypeIds.sort().join(',')) {
const showTypes = []
_showTypes.forEach(item => {
if (showTypeIds.includes(item.id)) {