重复跳转的时候发送新的date
this.$router.push(`/messages?date=${Date.now()}`).catch(() => {});
页面内监听路由变化
...
watch: {
$route(to, from) {
if (to.query.date) {
this.getList();
}
},
},
...
重复跳转的时候发送新的date
this.$router.push(`/messages?date=${Date.now()}`).catch(() => {});
页面内监听路由变化
...
watch: {
$route(to, from) {
if (to.query.date) {
this.getList();
}
},
},
...
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。