From 7882b2b7b37214ef637a01eb79e8c01aedee18d1 Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Mon, 28 Nov 2022 18:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A4=E6=AC=A1=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plus/addArticle.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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;