/settings/emails /settings/profile 以下是UserSettings.vue的定义 <div> <h1>UserSettings.vue</h1> <NavBar/> <router-view/> <router-view name="helper"/> </div> { path: '/settings', component: UserSettings, children: [{ path: 'emails', component: UserEmailsSubscriptions//正常匹配到<router-view/> }, { path: 'profile', components: { default: UserProfile,//默认匹配到<router-view/> helper: UserProfilePreview } }] }
207、vue-router嵌套命名视图
猜你喜欢
转载自www.cnblogs.com/gushixianqiancheng/p/12929578.html
今日推荐
周排行