vue-router子路由-路由嵌套

定義:子路由,也叫路由嵌套,採用在children後跟路由數組來實現,數組裏和其餘配置路由基本相同,須要配置path和component,而後在相應部分添加來展示子頁面信息,至關於嵌入iframe。javascript 一、src/components/Home.vue(父頁面) <template> <div class="hello"> <h1>{{ msg }}</h
相關文章
相關標籤/搜索