提交 d05a54ab authored 作者: zhangdaiscott's avatar zhangdaiscott

为了解决多级路由缓存问题,菜单展开只支持2级 【issues/4091】

上级 6929288d
......@@ -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>2) {
to.matched.splice(1, to.matched.length - 2)
if (to.matched && to.matched.length>3) {
to.matched.splice(2, to.matched.length - 3)
}
//update-end---author:scott ---date::2022-10-13 for:[jeecg-boot/issues/4091]多级路由缓存问题 #4091--------------
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论