background management project, is a typical main frame page home.vue (header, left navigation, right content area) is also a first-level route, through routes.js routing configuration, vue-router routing socket < router-view > < / router-view > (exists in the home.vue page) to switch navigation list content.
now you need to open its detail page, (FollowUp), on the secondary TopMedia page to switch back and forth, and add < router-view > < / router-view > under the TopMedia components page.
in the end, only the FollowUp content is appended to the TopMedia page, and the entire page cannot be switched. How to achieve flexible child page switching? Ask for ideas or sample code. The routes.js configuration is as follows:
{
path: "/",
component: Home,
name: "",
iconCls: "iconfont icon-users",
children: [
{
path: "/topMedia", component: TopMedia, name: "",
children: [{path: "/task/follow/:taskId/:ttId", component: FollowUp, name: "follow"]
}
]
}