Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sidebar-menu 的第一个总是激活状态. #1

Open
kapmix opened this issue May 12, 2018 · 0 comments
Open

sidebar-menu 的第一个总是激活状态. #1

kapmix opened this issue May 12, 2018 · 0 comments

Comments

@kapmix
Copy link

kapmix commented May 12, 2018

感觉是app/static/js/global.js文件第18行开始错误导致的:

//初始化左侧菜单选中样式
var activeMenu = $(".sidebar-menu a[href*='" + getPageName() + "']:first").parent();
if (activeMenu.length > 0) {
do {
activeMenu.addClass("active")
activeMenu = activeMenu.parent();
} while (!activeMenu.hasClass("sidebar-menu"));
}

还不会js, 所以不会修改.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant