Tree structure data is not updated and reloaded

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.

insert image description here

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
insert image description here

Subassembly

Guess you like

Origin blog.csdn.net/qq_43907534/article/details/132098883