mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
提交
This commit is contained in:
@@ -92,9 +92,9 @@ export default {
|
|||||||
this.imgContent.splice(index,1);
|
this.imgContent.splice(index,1);
|
||||||
},
|
},
|
||||||
comeback(){
|
comeback(){
|
||||||
this.$router.go(-1);
|
clearInterval(this.timer);
|
||||||
clearImmediate(this.timer);
|
|
||||||
this.timer = null;
|
this.timer = null;
|
||||||
|
this.$router.go(-1);
|
||||||
},
|
},
|
||||||
notedetail(){
|
notedetail(){
|
||||||
apiNote.detail(this.id).then(res=>{
|
apiNote.detail(this.id).then(res=>{
|
||||||
@@ -156,6 +156,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(num == 1) {
|
if(num == 1) {
|
||||||
this.editdata.isAuto = true;
|
this.editdata.isAuto = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
if(this.imgContent.length > 0) {
|
if(this.imgContent.length > 0) {
|
||||||
this.editdata.content = this.imgContent.join();
|
this.editdata.content = this.imgContent.join();
|
||||||
@@ -164,7 +165,7 @@ export default {
|
|||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
sessionStorage.setItem('isShowTip','');
|
sessionStorage.setItem('isShowTip','');
|
||||||
if(num ==1) {//自动保存
|
if(num ==1) {//自动保存
|
||||||
this.editdata.sysVersion +=1;
|
this.editdata.sysVersion += 1;
|
||||||
this.isShowTip = '笔记自动保存成功';
|
this.isShowTip = '笔记自动保存成功';
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.isShowTip = '';
|
this.isShowTip = '';
|
||||||
@@ -187,9 +188,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
clearImmediate(this.timer);
|
// clearInterval(this.timer);
|
||||||
this.timer = null;
|
// this.timer = null;
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.timer = null
|
||||||
},
|
},
|
||||||
|
destroyed(){
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.timer = null
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user