在路由及携带参数相同的情况下,需要将query携带的参数进行处理
refreshFn(){
const _time = Date.now() //获取时间戳
this.$router.replace({
path: "/info/view",
query: {
projectId: this.$route.query.projectId,
_time // 使用时间戳后,会默认当前页面参数不同进行跳转刷新
},
});
}