<router-view>
时间: 2023-09-25 11:14:59 浏览: 119
<router-view>标签是Vue Router提供的一个占位符,用来展示当前路由对应的组件内容。它通常会嵌套在<router-link>标签中,在点击路由链接后,<router-view>将渲染对应的组件内容并替换当前位置的内容。在Vue项目中,可以将<router-view>标签包裹在其他HTML元素中,比如<section>标签,以便对路由容器进行更好的组织和样式控制。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [对于<router-view>标签的理解](https://blog.csdn.net/a1598452168YY/article/details/128153267)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [vue-router 中router-view不能渲染的解决方法](https://download.csdn.net/download/weixin_38663608/13582607)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [vue 路由的内置组件 router-view 详细介绍](https://blog.csdn.net/ss810540895/article/details/126010861)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文