diff --git a/pages/plus/addArticle.vue b/pages/plus/addArticle.vue index f2daa7c..6a7ca68 100644 --- a/pages/plus/addArticle.vue +++ b/pages/plus/addArticle.vue @@ -153,9 +153,12 @@ }, saveArticle(){ let $this=this; - uni.showLoading({ - title:'正在保存...' - }) + if($this.article.title !== ''){ + uni.showLoading({ + title:'正在保存...' + }) + } + this.editorCtx.getContents({ success(res){ $this.article.content=res.html;