From 62890bd08a13c5d346c2836f1d13f25f711f5454 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Wed, 28 Sep 2022 11:09:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/myNote.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/Course/myNote.vue b/src/components/Course/myNote.vue index b4af83e9..b7cb362d 100644 --- a/src/components/Course/myNote.vue +++ b/src/components/Course/myNote.vue @@ -227,6 +227,7 @@ export default { // } }, saveNote() { + let that = this; if (this.mynoteData.content == '') { this.$message({ type: 'info', message: '您还没有书写笔记!', offset: 50 }); return; @@ -240,8 +241,8 @@ export default { this.inAnimation = true; this.isEdit = false; setTimeout(() => { - this.getMyNote(); - this.mynoteData = { + that.getMyNote(); + that.mynoteData = { type: 1, //我发布的是1 我导入的是2 content: '', playTime: '', @@ -262,12 +263,12 @@ export default { if(this.mynoteData.openType != 9){ return } - setTimeout(() => { + setTimeout(() => { localStorage.setItem("NOTE_TEXT", ''); // clearInterval(this.autoSave); - this.getMyNote(); - this.notetabType(2); - this.mynoteData = { + that.getMyNote(); + that.notetabType(2); + that.mynoteData = { type: 1, //我发布的是1 我导入的是2 content: '', playTime: '',