fixed: Fixed an issue where the right table would not refresh when a node in the asset tree was clicked

This commit is contained in:
zhaojisen
2024-06-28 10:33:29 +08:00
parent d3c018dc4a
commit 1f3d29560d
2 changed files with 5 additions and 5 deletions

View File

@@ -159,6 +159,7 @@ export default {
},
getAssetsUrl(treeNode) {
let url = this.treeSetting?.url || this.url
console.log(treeNode, url)
if (treeNode.meta.type === 'node') {
const nodeId = treeNode.meta.data.id
url = setUrlParam(url, 'node_id', nodeId)
@@ -177,7 +178,10 @@ export default {
}
const query = this.setTreeUrlQuery()
url = query ? `${url}&${query}` : url
this.$set(this.tableConfig, 'url', url)
setTimeout(() => {
this.$set(this.tableConfig, 'url', url)
}, 300)
if (this.treeSetting.selectSyncToRoute !== false) {
setRouterQuery(this, url)

View File

@@ -47,7 +47,3 @@ export default {
}
}
</script>
<style>
</style>