Skip to content

Commit 90218db

Browse files
committed
fix(app-sider): fix the problem that Sider with submenus renders abnormally
1 parent 45f8c7a commit 90218db

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/layouts/AppLayout/components/AppSider.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,15 @@ export default defineComponent({
3838
<SubMenu
3939
v-else
4040
key={config.routeName}
41-
title={() => (
41+
title={
4242
<span>
4343
{h(config.icon)}
4444
<span>{config.title}</span>
4545
</span>
46-
)}
46+
}
4747
>
4848
{config.children.map(subConfig => (
49-
<MenuItem key={subConfig.routeName}>
50-
{subConfig.routeName}
51-
</MenuItem>
49+
<MenuItem key={subConfig.routeName}>{subConfig.title}</MenuItem>
5250
))}
5351
</SubMenu>
5452
)

0 commit comments

Comments
 (0)