From b7b675acf8dfb000743e5dfcfe1af8bd6c756508 Mon Sep 17 00:00:00 2001 From: chen shuai Date: Fri, 22 Mar 2019 12:38:34 +0800 Subject: [PATCH] fix: fix i18 error --- src/models/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/menu.js b/src/models/menu.js index d9a9d2b1..c49f8e20 100644 --- a/src/models/menu.js +++ b/src/models/menu.js @@ -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}`; -- GitLab