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

fix: 点击三级菜单时,自动折叠到二级菜单,无法定位到三级菜单问题修复 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ router.beforeEach((to, from, next) => {
//解决三级菜单无法缓存问题
//参考: https://blog.csdn.net/qq_37322135/article/details/126013301
//参考: https://blog.csdn.net/cwin8951/article/details/106644118
if (to.matched && to.matched.length>3) {
to.matched.splice(2, to.matched.length - 3)
if (to.matched && to.matched.length>4) {
to.matched.splice(3, to.matched.length - 4)
}
//update-end---author:scott ---date::2022-10-13 for:[jeecg-boot/issues/4091]多级路由缓存问题 #4091--------------

Expand Down