this.$router.push path
时间: 2023-09-28 14:06:57 浏览: 97
this.$router.push(path)是Vue Router中的一个方法,用于导航到指定的路径。该方法会将当前路径添加到路由历史记录中,并加载新的路径页面。通过传入一个路径参数,可以实现跳转到指定的页面。例如,可以使用以下方式实现跳转到path路径所对应的页面:
this.$router.push(path)<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Vue中 this.$router.push 传参 及 参数接收](https://blog.csdn.net/chenxi_li/article/details/108365779)[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: 50%"]
- *2* *3* [Vue中的路由导航](https://blog.csdn.net/qq_44858608/article/details/124070219)[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: 50%"]
[ .reference_list ]
阅读全文