fix: param on get role name function
This commit is contained in:
parent
71663e9868
commit
f08f4f327f
1 changed files with 2 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ function doLogout() {
|
|||
});
|
||||
}
|
||||
|
||||
function getRoleName(userRoleValue?: string[], roleOptions: Option[]) {
|
||||
function getRoleName(roleOptions: Option[], userRoleValue?: string[]) {
|
||||
if (!userRoleValue || !roleOptions) return;
|
||||
|
||||
const matchingRole: string | undefined = roleOptions.find(
|
||||
|
|
@ -288,7 +288,7 @@ onMounted(async () => {
|
|||
</span>
|
||||
<div style="font-size: 11px; color: var(--surface)">
|
||||
{{
|
||||
getRoleName(filterRole, userStore.userOption.roleOpts)
|
||||
getRoleName(userStore.userOption.roleOpts, filterRole)
|
||||
}}
|
||||
</div>
|
||||
</q-item-label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue