Vue清除地址栏路由参数方式

方式一:
let path = this.$route.path; //先获取路由路径
this.$router.push(path); //再跳转路由路径,query参数没带过去,所以被清除了
方式二:(摘自评论)
this.$router.push({ query: {} });
收藏 (0)
评论列表
正在载入评论列表...
我是有底线的