fix(ui): some bugs

This commit is contained in:
songlh
2024-08-26 18:34:42 +08:00
parent ab240cb003
commit 92fca65383
7 changed files with 42 additions and 37 deletions

View File

@@ -139,9 +139,9 @@
:normalizer="
(node) => {
return {
id: String(node[0]),
label: node[1].label || node[0],
children: node.children,
id: String(node[0] || ''),
label: node[1] ? node[1].label || node[0] : node[0],
children: node.children && node.children.length ? node.children : undefined,
}
}
"

View File

@@ -118,6 +118,8 @@ export default {
.locale {
cursor: pointer;
padding: 0 8px;
&:hover {
color: @primary-color;
}
@@ -135,6 +137,7 @@ export default {
display: flex;
align-items: center;
justify-content: center;
margin: 0 8px;
&-icon {
font-size: 12px;