目录默认节点被删除时,重置默认节点为根节点
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user