this.$router.push多了一层路由
时间: 2023-10-13 22:04:49 浏览: 166
vue路由结构可设一层方便动态添加路由操作
根据引用中提供的代码示例,this.$router.push用于路由跳转,可以将用户导航到指定的页面。如果this.$router.push多了一层路由,可以通过在跳转路径中添加额外的路由路径来解决。例如,如果当前路径是'/home',要跳转到'/home/page',可以使用this.$router.push('/home/page')来实现。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [【vue项目】this.$router.go(-1)返回跳转到系统首页(问题解决)](https://blog.csdn.net/weixin_45393094/article/details/120925344)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [vue路由跳转页面不刷新、this.$router.go(-1)不生效](https://blog.csdn.net/weixin_45048913/article/details/125738459)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文