Skip to content

Commit

Permalink
rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
limingjiu committed May 30, 2024
1 parent f75fe51 commit b6af132
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/views/sys/UsersView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,11 @@ const clearForm = () => {
form.status = 0
}
const getRoleName = (item: string): string => {
return roleList.value.filter(role => role.code === item)[0].name
const getRoleName = (item: string) => {
let list = roleList.value.filter(role => role.code === item)
if (list) {
return list[0].name
}
}
const handleSizeChange = async (val: number) => {
Expand Down

0 comments on commit b6af132

Please sign in to comment.