This commit is contained in:
zhaofang
2022-09-28 11:09:48 +08:00
parent 4cf64e5ea8
commit 62890bd08a

View File

@@ -227,6 +227,7 @@ export default {
// } // }
}, },
saveNote() { saveNote() {
let that = this;
if (this.mynoteData.content == '') { if (this.mynoteData.content == '') {
this.$message({ type: 'info', message: '您还没有书写笔记!', offset: 50 }); this.$message({ type: 'info', message: '您还没有书写笔记!', offset: 50 });
return; return;
@@ -240,8 +241,8 @@ export default {
this.inAnimation = true; this.inAnimation = true;
this.isEdit = false; this.isEdit = false;
setTimeout(() => { setTimeout(() => {
this.getMyNote(); that.getMyNote();
this.mynoteData = { that.mynoteData = {
type: 1, //我发布的是1 我导入的是2 type: 1, //我发布的是1 我导入的是2
content: '', content: '',
playTime: '', playTime: '',
@@ -262,12 +263,12 @@ export default {
if(this.mynoteData.openType != 9){ if(this.mynoteData.openType != 9){
return return
} }
setTimeout(() => { setTimeout(() => {
localStorage.setItem("NOTE_TEXT", ''); localStorage.setItem("NOTE_TEXT", '');
// clearInterval(this.autoSave); // clearInterval(this.autoSave);
this.getMyNote(); that.getMyNote();
this.notetabType(2); that.notetabType(2);
this.mynoteData = { that.mynoteData = {
type: 1, //我发布的是1 我导入的是2 type: 1, //我发布的是1 我导入的是2
content: '', content: '',
playTime: '', playTime: '',