Problem: Click the edit button to select the organization name on the edit page, and then return to the list page, click the add button, the tree structure data is not reloaded, and the last tick option is displayed.
Solution: Request the interface to reacquire the tree structure data before the edit page is closed.
The knowledge point used is: the parent component calls the child component method.
Reference link: https://blog.csdn.net/xy405580364/article/details/103799227
In the child component, use $emit to trigger an event to the parent component, and the parent component listens to this event.
parent component
Subassembly