From ac0ab41dcb54081235bb4d1a0136c791fed4ddbd Mon Sep 17 00:00:00 2001 From: callmeyan Date: Tue, 11 Feb 2025 14:53:27 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E7=B4=A0=E6=9D=90=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/article/edit-modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/article/edit-modal.tsx b/src/components/article/edit-modal.tsx index 2e7071e..214d928 100644 --- a/src/components/article/edit-modal.tsx +++ b/src/components/article/edit-modal.tsx @@ -69,8 +69,8 @@ function groupHasImageAndText(blocks: BlockContent[]) { // 验证分组数据是否合法 function checkGroupsValid(groups: BlockContent[][]) { if (groups.length == 1) return true; - for (const group of groups) { - if(!groupHasImageAndText(group)) return false; + for (let index = 1;index< groups.length; index ++) { + if(!groupHasImageAndText(groups[index])) return false; } return true; }