this.timer=null
clearInterval(this.timer)
this.timer=setInterval(()=>{
// location.reload() //原生刷新
this.$router.go() //路由刷新
},5000)
一般用于app.vue页面当中 也可根据所需当前刷新页面填写方法
vue定时刷新页面(快捷简单)
最新推荐文章于 2025-05-27 09:06:17 发布
this.timer=null
clearInterval(this.timer)
this.timer=setInterval(()=>{
// location.reload() //原生刷新
this.$router.go() //路由刷新
},5000)
一般用于app.vue页面当中 也可根据所需当前刷新页面填写方法