From ac8d14efec74e52aed28a88ee8ae02f8abbd3c56 Mon Sep 17 00:00:00 2001 From: macro Date: Sat, 27 Feb 2021 16:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E5=88=86=E9=85=8D=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/permission.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 57643e8..eb907db 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -22,6 +22,7 @@ function hasPermission(menus, route) { } else { route.sort = 0; if (route.hidden !== undefined && route.hidden === true) { + route.sort=-1; return true; } else { return false;