From fc9bc7bea23826c9cde90c71ada3c89ac93ecd5b Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 12 Mar 2022 23:57:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=90=8D=E7=A7=B0=E6=A0=87=E7=AD=BE=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/crontab/index.tsx | 48 ++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx index 3ec94523..ae213976 100644 --- a/src/pages/crontab/index.tsx +++ b/src/pages/crontab/index.tsx @@ -85,28 +85,32 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => { goToScriptManager(record); }} > - - {record.labels?.map((label: string) => ( - { - e.stopPropagation(); - setSearchValue(`label:${label}`); - }} - > - {label} - - ))} - - } - > - {record.name || '-'} - + {record.labels && record.labels.length > 0 ? ( + + {record.labels?.map((label: string) => ( + { + e.stopPropagation(); + setSearchValue(`label:${label}`); + }} + > + {label} + + ))} + + } + > + {record.name || '-'} + + ) : ( + record.name || '-' + )} {record.isPinned ? (