This commit is contained in:
zhaofang
2022-09-29 16:20:12 +08:00
parent 97d9ed507a
commit 01105a425e

View File

@@ -92,9 +92,9 @@ export default {
this.imgContent.splice(index,1);
},
comeback(){
this.$router.go(-1);
clearImmediate(this.timer);
clearInterval(this.timer);
this.timer = null;
this.$router.go(-1);
},
notedetail(){
apiNote.detail(this.id).then(res=>{
@@ -156,6 +156,7 @@ export default {
}
if(num == 1) {
this.editdata.isAuto = true;
}
if(this.imgContent.length > 0) {
this.editdata.content = this.imgContent.join();
@@ -187,9 +188,15 @@ export default {
}
},
beforeDestroy() {
clearImmediate(this.timer);
this.timer = null;
// clearInterval(this.timer);
// this.timer = null;
clearInterval(this.timer)
this.timer = null
},
destroyed(){
clearInterval(this.timer)
this.timer = null
}
}
</script>