let path = this.$route.path; //先获取路由路径
this.$router.push(path); //再跳转路由路径,query参数没带过去,所以被清除了
方式二:(摘自评论)
this.$router.push({ query: {} });
Vue清除地址栏路由参数方式
2023-01-23 57 0 0
let path = this.$route.path; //先获取路由路径
this.$router.push(path); //再跳转路由路径,query参数没带过去,所以被清除了
方式二:(摘自评论)
this.$router.push({ query: {} });
原文链接: https://blog.csdn.net/lihefei_coder/article/details/105410470
本文链接: https://www.10k.cn/article/40270.html
版权声明: 本文章内容采集或者整合于互联网,仅供学习使用,如若本站内容侵犯了您的合法权益,请及时联系我们删除。