vue项目,路由跳转当前页面时,页面不会刷新、重新加载方法。
解决方案是使用:location.reload()
this.$router.push({ path: 'XXX' }) location.reload()