清除router路由后面的参数

清除router参数:
1.this.$router.push({ query: {}})
2.var path = this.$route.path; //获取路由路径
   this.$router.push(path); //跳转路由路径不携带query参数
posted @ 2021-05-17 13:43  吃不棒的胖胖糖  阅读(2091)  评论(0编辑  收藏  举报