** 当我们在开发的时候一定会遇到需要使用一次性路由参数的时候 ** 用query传参方式 return router.push({ name: 'system_approval_list', query: { active: '5' } }) 接收的地方 在使用过一次性参数之后用下面的方法将参数清空 // 一次性参数 清空路由携带的参数 const newUrl = window.location.hash.replace(/\?.*$/, '') history.replaceState({}, '', newUrl)