Recently, the company is doing a new project, drawing requirements, prototype drawings, UI drawings, and then it’s my turn to draw pages.
However, a closer look at the requirements document shows that the late syndication must involve the transmission parameters of the parent and child pages, such as the following figure:

I want to get the form data from the parent page. How do I do that?

Push ({name: “”, params:{}})) to the parent page, but that doesn’t work because the child page has no jump button and no event. Then I came up with Vuex, which stores the form data of sub-pages into stores, but for multiple sub-pages, you need to create multiple stores. Not really.

So what else is there to do? Hey, can I get the child page instance via $refs? Give it a try, ha ha, sure enough. This is great, get the child page instance, also can get the child page data, and then in the parent page how to operate, that is arbitrary, hahaha.

The specific operation is shown below: