From 25689cf40f846e5ca7910ed36a9170bd96f5e00d Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 1 Feb 2022 22:33:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/crontab/index.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx index 7f8d7324..75c2e149 100644 --- a/src/pages/crontab/index.tsx +++ b/src/pages/crontab/index.tsx @@ -391,16 +391,16 @@ const Crontab = ({ headerStyle, isPhone }: any) => { data.data .sort((a: any, b: any) => { const sortA = - a.isDisabled && a.status !== 0 - ? 4 - : a.isPinned && a.status !== 0 + a.isPinned && a.status !== 0 ? 5 + : a.isDisabled && a.status !== 0 + ? 4 : a.status; const sortB = - b.isDisabled && b.status !== 0 - ? 4 - : b.isPinned && b.status !== 0 + b.isPinned && b.status !== 0 ? 5 + : b.isDisabled && b.status !== 0 + ? 4 : b.status; return CrontabSort[sortA] - CrontabSort[sortB]; })