From 3003e3d33a7e8f925bd0af0eb2608290e2ca26e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Mon, 27 Mar 2023 17:44:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=88=97=E8=A1=A8=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index 6442337..d14ea37 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -55,7 +55,7 @@ const IndexPage = () => { } else if (tabKey === 3) { const arr: any = []; res.data.courses.map((item: any) => { - if (records[item.id] && records[item.id].progress === 100) { + if (records[item.id] && records[item.id].progress >= 10000) { arr.push(item); } }); @@ -65,7 +65,7 @@ const IndexPage = () => { res.data.courses.map((item: any) => { if ( !records[item.id] || - (records[item.id] && records[item.id].progress !== 100) + (records[item.id] && records[item.id].progress < 10000) ) { arr.push(item); }