|
|
@@ -244,6 +244,7 @@ export default {
|
|
|
updateTreeNodeName(this.node).then(() => {
|
|
|
done()
|
|
|
this.selectedNode.name = this.node.name
|
|
|
+ this.$emit('refresh')
|
|
|
})
|
|
|
} else {
|
|
|
addTreeNode(this.node).then(({ data }) => {
|
|
|
@@ -252,6 +253,7 @@ export default {
|
|
|
if (!this.$selectedVNode.expanded) {
|
|
|
this.$selectedComponent.handleExpandIconClick()
|
|
|
}
|
|
|
+ this.$emit('refresh')
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
@@ -278,7 +280,13 @@ export default {
|
|
|
const { path, name } = this.group
|
|
|
this.onDirectoryChange({ root: true, id: path, name, group: { path, name } })
|
|
|
this.$refs.treeRef.setCurrentKey(path)
|
|
|
+ this.$emit('refresh')
|
|
|
})
|
|
|
+ },
|
|
|
+ refresh () {
|
|
|
+ this.getDirectoryTree()
|
|
|
+ const { path } = this.group
|
|
|
+ this.onDirectoryChange({ root: true, id: path, name: '资源目录' })
|
|
|
}
|
|
|
}
|
|
|
}
|