From dd14cbac2d7dfd6a5537764a1d58ddafcb087aed Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Wed, 6 Jul 2022 16:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/communityParty/article/drafts.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/modules/communityParty/article/drafts.vue b/src/views/modules/communityParty/article/drafts.vue index 170a4db8..712f9537 100644 --- a/src/views/modules/communityParty/article/drafts.vue +++ b/src/views/modules/communityParty/article/drafts.vue @@ -328,7 +328,10 @@ export default { }) .join(" "); } else { - data.content = data.contentList[0].content; + data.content = + Array.isArray(data.contentList) && data.contentList.length > 0 + ? data.contentList[0].content + : ""; } if (data.imgUrl) { data.imgArr = [