From d05a54abec0038038d3c5df2bf90c58a66b66131 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Fri, 14 Oct 2022 18:51:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E4=BA=86=E8=A7=A3=E5=86=B3=E5=A4=9A?= =?UTF-8?q?=E7=BA=A7=E8=B7=AF=E7=94=B1=E7=BC=93=E5=AD=98=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E8=8F=9C=E5=8D=95=E5=B1=95=E5=BC=80=E5=8F=AA=E6=94=AF?= =?UTF-8?q?=E6=8C=812=E7=BA=A7=20=E3=80=90issues/4091=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/permission.js b/src/permission.js index d7ef9ed..fe8d825 100644 --- a/src/permission.js +++ b/src/permission.js @@ -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--------------