this.$router.push(-1)
时间: 2023-08-21 14:18:28 浏览: 100
this.$router.push(-1)是一种路由导航的方式,它会将当前页面返回到上一个页面。这种方式可以通过在路由的历史记录中找到上一个页面的路径,并进行导航。在Vue Router中,可以使用this.$router.go(-1)来实现这个功能。\[1\]
#### 引用[.reference_title]
- *1* [Vue--Router--this.$router.replace()、push()、go()的区别](https://blog.csdn.net/feiying0canglang/article/details/126415877)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [this.$router.push()两种常见用法](https://blog.csdn.net/qq_42552857/article/details/118678031)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文
相关推荐















