From 0ad7e17dbb840ae49232fe507e8264eab5734b6e Mon Sep 17 00:00:00 2001 From: lhtzbj12 Date: Tue, 12 Nov 2019 14:09:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3meta.access=3D[]=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E8=A7=81=E8=8F=9C=E5=8D=95=EF=BC=8C=E4=BD=86?= =?UTF-8?q?=E6=97=A0=E6=9D=83=E8=BF=9B=E5=85=A5=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libs/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/util.js b/src/libs/util.js index b7460aefd..adf38f601 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -156,7 +156,7 @@ export const getNewTagList = (list, newRoute) => { * @param {*} route 路由列表 */ const hasAccess = (access, route) => { - if (route.meta && route.meta.access) return hasOneOf(access, route.meta.access) + if (route.meta && route.meta.access && route.meta.access.length) return hasOneOf(access, route.meta.access) else return true }