master
liaoanqi 4 years ago
parent c5d3bc60b4
commit f9ecefc247

@ -20,7 +20,7 @@ export function isAuth (key) {
if (authorities.length) { if (authorities.length) {
for (const i in authorities) { for (const i in authorities) {
const element = authorities[i] const element = authorities[i]
if (element.authority === key) { if (element === key) {
return true return true
} }
} }

Loading…
Cancel
Save