pull/325/merge
Brooks Liu 2019-02-09 02:38:46 +00:00 committed by GitHub
commit 486c6d5747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
menuItems.forEach(function(item) {
var children = states.filter(function(child) {
return child.level == 1 && child.name.indexOf(item.name) === 0;
return child.level == 1 && child.name.split('.')[0] === item.name;
});
item.subMenu = children.length ? children : null;
});