From 852ef4465432a452d6898019395e079a8e7df2b4 Mon Sep 17 00:00:00 2001 From: lingting Date: Sun, 24 Oct 2021 23:25:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(Ballcat):=20=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=8F=9C=E5=8D=95=E9=A1=B5=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/system/menu/SysMenuPage.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pages/system/menu/SysMenuPage.tsx b/src/pages/system/menu/SysMenuPage.tsx index b5be5bc..751ca4b 100644 --- a/src/pages/system/menu/SysMenuPage.tsx +++ b/src/pages/system/menu/SysMenuPage.tsx @@ -14,7 +14,7 @@ import Icon, { IconSelect } from '@/components/Icon'; import I18n from '@/utils/I18nUtils'; import Auth from '@/components/Auth'; import SysI18nCreate from '@/pages/i18n/SysI18nCreate'; -import { DownOutlined, EditOutlined, UpOutlined } from '@ant-design/icons'; +import { DownOutlined, EditTwoTone, UpOutlined } from '@ant-design/icons'; const isBtn = (data: SysMenuVo | any) => { return data.type === 2 || data === 2; @@ -80,11 +80,9 @@ export default () => { <> {record.icon && } {record.i18nTitle} - {isBtn(record) && ( - editI18n(record.title)} - /> + {/* 菜单和目录都有对应的文本要展示 */} + {!isBtn(record) && ( + editI18n(record.title)} /> )} );