优化多语言的设置

This commit is contained in:
jishenghua
2025-01-06 23:47:59 +08:00
parent 0aa123c9fa
commit b9ad2391d2
3 changed files with 13 additions and 13 deletions

View File

@@ -122,7 +122,7 @@ export default {
}
return (
<Item {...{ key: menu.url }}>
<tag {...{ props, attrs }}>
<tag {...{ props, attrs }} title={menu.text}>
{this.renderIcon(menu.icon)}
<span>{menu.text}</span>
</tag>
@@ -138,7 +138,7 @@ export default {
<SubMenu {...{ key: menu.url }}>
<span slot="title">
{this.renderIcon(menu.icon)}
<span>{menu.text}</span>
<span title={menu.text}>{menu.text}</span>
</span>
{itemArr}
</SubMenu>