this is the timer used in the methods method
async verScheme(index,row){
var uuid = this.getUuid();
try {
let ret = await this.$Api.OperationAccess.SystemAccess.Verification({
id: row.id,
uuid : uuid,
})
this.dialogFormVisible1 = true;
this.interval =setInterval(()=> {
this.log(uuid);
},1000);
}catch ( ret ){
this.$message.error( ret.msg ? ret.msg : " : " + ret )
}
}
this is using beforeDestory ()
created(){
this.Init();
this.timer = this.interval;
},
beforeDestroy() {
if (this.timer) { //
clearInterval(this.timer); //
}
},