Skip to content

Commit

Permalink
Update UsersView.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
mingchiuli authored May 30, 2024
1 parent b6af132 commit 676af0c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/views/sys/UsersView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,7 @@ const clearForm = () => {
}
const getRoleName = (item: string) => {
let list = roleList.value.filter(role => role.code === item)
if (list) {
return list[0].name
}
return roleList.value.filter(role => role.code === item)[0]?.name
}
const handleSizeChange = async (val: number) => {
Expand Down Expand Up @@ -387,4 +384,4 @@ const getRegisterLink = async (username: string) => {
.phone {
width: 400px
}
</style>
</style>

0 comments on commit 676af0c

Please sign in to comment.