Skip to content

Commit

Permalink
feat(Ballcat): 优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
lingting committed Oct 21, 2021
1 parent c7c3df9 commit 1797d41
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pages/system/menu/SysMenuPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ export default () => {
render: (dom, record) => {
return (
<>
<Icon type={record.icon} /> {record.i18nTitle}
{isBtn(record) ? (
''
) : (
{record.icon && <Icon type={record.icon} style={{ marginRight: '5px' }} />}
{record.i18nTitle}
{isBtn(record) && (
<EditOutlined
style={{ marginLeft: '5px', color: '#1890ff' }}
onClick={() => editI18n(record.title)}
Expand Down

0 comments on commit 1797d41

Please sign in to comment.