From f9ecefc247178b7f8c40f8c9473add504360c797 Mon Sep 17 00:00:00 2001 From: liaoanqi <1776106376@qq.com> Date: Thu, 31 Mar 2022 16:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.js b/src/utils/index.js index c5df254..1637e2c 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -20,7 +20,7 @@ export function isAuth (key) { if (authorities.length) { for (const i in authorities) { const element = authorities[i] - if (element.authority === key) { + if (element === key) { return true } }