diff --git a/src/views/user/Noteedit.vue b/src/views/user/Noteedit.vue index b90aea6b..4f80790e 100644 --- a/src/views/user/Noteedit.vue +++ b/src/views/user/Noteedit.vue @@ -195,9 +195,7 @@ export default { if(num == 1) { this.editdata.isAuto = true; } - if(this.imgContent.length > 0) { - this.editdata.content = this.imgContent.join(); - } + this.editdata.content = this.imgContent.join(); apiNote.update(this.editdata).then(res=>{ if(res.status == 200) { localStorage.removeItem(this.localStorageKey); //清空本地缓存