目录默认节点被删除时,重置默认节点为根节点

This commit is contained in:
648540858
2022-01-21 14:10:49 +08:00
parent 7d88827415
commit 3f5e885e82
5 changed files with 26 additions and 2 deletions

View File

@@ -161,6 +161,9 @@ export default {
console.log("移除成功")
node.parent.loaded = false
node.parent.expand();
if(this.defaultCatalogId === id) {
this.defaultCatalogId = this.platformId;
}
}
})
.catch(function (error) {