How to update the element UI tree control after lazily loading the state and adding, deleting and modifying the tree?

the element UI tree control (el-tree) is being used in the form of lazy loading (lazy +: load= "loadNode" method). The business is as follows:
1-add a level 1 node
2-any node can add a new child node
3-edit node
4-delete node
-(problems encountered)-
1-add a level 1 node, and cannot use

with "insertAfter"
bus.$on("adddd", function(nc){
  console.log("ssssssssssssssssss")
  console.log(nc)
  console.log(_this.lastOne)
  _this.$refs.tree.insertAfter(nc, _this.lastOne);
})

nc is the new (first-level) node of "newChild" (see console print)
this.lastOne is the data of the last node "1111" of the first-level directory (see console print, screenshot red box)
clipboard.png

:
clipboard.png

at Node.insertChild (element-ui.common.js?ccbf:22374)-:
clipboard.png

2-:
a:lazy-load:load ---

: F5 :
clipboard.png

:
clipboard.png


clipboard.png

3
clipboard.png

b: if the parent node has been expanded before, the new operation is normal.

3-another thing to ask is: refresh the node problem in the case of lazy loading (this is now unsolved.)


our problems are the same. The operations of adding, deleting, changing and querying interact with the background, and it should not be possible to modify them only at the front end. What I use now after modification is: there is a resolve in load to operate, but his method will change the direction of the this with the expanded node, which is still not satisfactory. To put it bluntly, it is the lack of an api to update the specified node


I have also encountered this problem. It also uses the first floor method, but the loaded node runs under the root node.
use updateKeyChildren


can you tell me how to solve this problem in the end?


I can meet the requirements
when each addition operation is completed, the id of the current parent node is returned to the background through updateKeyChildren to query the data of the new next node, in the form of array, and then
is called updateKeyChildren (parent node id,).


I have also encountered the problem of lazy loading tree update nodes. I have solved
https://codeshelper.com/a/11.


I have implemented the right-click menu to add and delete nodes, and double-click to edit nodes.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b666-2baa8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b666-2baa8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?