async mounted() {
    this.refresh() ;
},
methods: {
    refresh(){
        this.timer = setTimeout(async () => {
            await this.refresh();
            console.log("定时刷新!!!")
        }, 5000) //设置五秒后刷新
    },
}
Logo

前往低代码交流专区

更多推荐