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 } }