admin 管理员组

文章数量: 1184232

方式一:覆盖
let path =this.$route.path;//先获取路由路径this.$router.push(path);//再跳转路由路径,query参数没带过去,所以被清除了
方式二:(摘自评论)
this.$router.push({query:{}});
方式三:使用浏览器historyAPI
window.history.replaceState(null,'','');

本文标签: 清除路由 由路径 参数的三