Skip to content

Commit 1797d41

Browse files
committed
feat(Ballcat): 优化代码
1 parent c7c3df9 commit 1797d41

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pages/system/menu/SysMenuPage.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ export default () => {
7878
render: (dom, record) => {
7979
return (
8080
<>
81-
<Icon type={record.icon} /> {record.i18nTitle}
82-
{isBtn(record) ? (
83-
''
84-
) : (
81+
{record.icon && <Icon type={record.icon} style={{ marginRight: '5px' }} />}
82+
{record.i18nTitle}
83+
{isBtn(record) && (
8584
<EditOutlined
8685
style={{ marginLeft: '5px', color: '#1890ff' }}
8786
onClick={() => editI18n(record.title)}

0 commit comments

Comments
 (0)