Skip to content

Commit 2a4730e

Browse files
tonyfreesendya
authored andcommitted
fix: $auth return value
1 parent 25807f2 commit 2a4730e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils/helper/permission.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ function plugin (Vue) {
2222
return (permissions) => {
2323
const [permission, action] = permissions.split('.')
2424
const permissionList = _this.$store.getters.roles.permissions
25-
permissionList.find((val) => {
25+
return permissionList.find((val) => {
2626
return val.permissionId === permission
2727
}).actionList.findIndex((val) => {
2828
return val === action
29-
})
30-
return false
29+
}) > -1
3130
}
3231
}
3332
}

0 commit comments

Comments
 (0)