通过this.$router.replace改变当前页面的路由地址(单纯改变页面地址页面不刷新)结合this.reload()刷新当前页面通过this.$route.query。cart_ids获取当前路由参数,在接口中取出需要去除的参数。过滤掉路由参数,去掉参数赋值(为了过滤方便,我把字符串转成数组拆分,数组过滤数组,过滤完记得切回字符串join)this.$router.replace({name:"submit_order",query:{car??t_ids,//过滤后的参数add_type:this.$route.query.add_type}},()=>{this.reload();//刷新页面})4.使用this.reload()需要先在父组件中定义(可以自己做)
