mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 09:43:32 +00:00
[fix]修复创建Tree的错误提示
This commit is contained in:
@@ -209,6 +209,7 @@ export default {
|
|||||||
if (!parentNode) {
|
if (!parentNode) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.zTree.expandNode(parentNode, true, false, true, false)
|
||||||
// http://localhost/api/v1/assets/nodes/85aa4ee2-0bd9-41db-9079-aa3646448d0c/children/
|
// http://localhost/api/v1/assets/nodes/85aa4ee2-0bd9-41db-9079-aa3646448d0c/children/
|
||||||
const url = `${this.treeSetting.nodeUrl}${parentNode.meta.node.id}/children/`
|
const url = `${this.treeSetting.nodeUrl}${parentNode.meta.node.id}/children/`
|
||||||
this.$axios.post(url, {}).then(data => {
|
this.$axios.post(url, {}).then(data => {
|
||||||
|
Reference in New Issue
Block a user