feat: 优化代码

This commit is contained in:
findreamer 2023-11-02 19:13:12 +08:00
parent 9b01341983
commit c9a91eab5a

View File

@ -365,8 +365,7 @@ export default class App extends React.Component<AppProps, object> {
if (
!subHeader &&
link.children &&
link.children.filter((item: {visible: boolean}) => item?.visible)
.length
link.children.some((item: {visible: boolean}) => item?.visible)
) {
children.push(
<span