Commit b7b675ac authored by chen shuai's avatar chen shuai

fix: fix i18 error

parent 19780739
......@@ -18,7 +18,7 @@ function formatter(data, parentAuthority, parentName) {
}
let locale = 'menu';
if (parentName) {
if (parentName && parentName !== '/') {
locale = `${parentName}.${item.name}`;
} else {
locale = `menu.${item.name}`;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment