From 23ef8f6f02822ededcf02c500510aee448f17ec6 Mon Sep 17 00:00:00 2001 From: mac Date: Fri, 8 Nov 2024 15:41:36 +0800 Subject: [PATCH] commit --- src/pages/swiper/index.tsx | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/src/pages/swiper/index.tsx b/src/pages/swiper/index.tsx index fa2584e..477ed2d 100644 --- a/src/pages/swiper/index.tsx +++ b/src/pages/swiper/index.tsx @@ -87,7 +87,11 @@ const Swiper: FC = () => { }, { title: '类型', - dataIndex: 'dapp_type' + dataIndex: 'dapp_type', + render: (type) => { + let item = optionTypes.find(item => item.value === `${type}`) + return
{item ? item.label : type}
+ } }, { title: '网页地址', @@ -158,26 +162,10 @@ const Swiper: FC = () => { value: '42161', label: 'Arbitrum One' }, - { - value: '137', - label: 'Polygon Mainnet' - }, { value: '10', label: 'OP Mainnet' }, - { - value: '100', - label: 'xDai Chain' - }, - { - value: '10', - label: 'OP Mainnet' - }, - { - value: '314', - label: 'Filecoin Mainnet' - }, { value: '97', label: 'BSC Testnet'