前端导航栏更新

This commit is contained in:
橙子
2021-10-23 02:09:10 +08:00
parent 6bc67cbf06
commit eb15667d21
6 changed files with 45 additions and 49 deletions

View File

@@ -5,13 +5,11 @@ function getUrl(menuList, menuStr) {
if (start) {
for (var i = 0; i < menuList.length; i++) {
if (menuList[i].menu_name == menuStr) {
alert(777)
start = false;
console.log(handUrl(menuList[i]))
return handUrl(menuList[i])
} else {
if (menuList[i].children != undefined && start) {
alert(666)
getUrl(menuList[i].children, menuStr);
}