From 2fb2334e1d9a316ac3aaf9892c020731840d12ac Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 3 Mar 2022 12:03:29 +0800 Subject: [PATCH] BUG 28002 --- project/xiushan/apps/AppNewsCenter/components/addArticle.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/xiushan/apps/AppNewsCenter/components/addArticle.vue b/project/xiushan/apps/AppNewsCenter/components/addArticle.vue index 03baa566..0de5085e 100644 --- a/project/xiushan/apps/AppNewsCenter/components/addArticle.vue +++ b/project/xiushan/apps/AppNewsCenter/components/addArticle.vue @@ -98,7 +98,7 @@ export default { * */ addOrUpdate(status) { if (Array.isArray(this.articInfo.thumbUrl)) { - this.articInfo.thumbUrl = this.articInfo.thumbUrl[0].url + this.articInfo.thumbUrl = this.articInfo.thumbUrl?.[0]?.url } const msg = +status ? '发布成功' : this.isEdit ? '编辑成功' : '保存成功'; this.instance.post(`/app/appnews/addOrUpdate`, { @@ -135,7 +135,7 @@ export default { } else { this.articInfo.thumbUrl = [] } - + } }) }