refactor: clean & attribute
This commit is contained in:
parent
8cba38f538
commit
879e256a1e
5 changed files with 20 additions and 15 deletions
|
|
@ -136,6 +136,10 @@ onMounted(async () => {
|
|||
const user = getUsername();
|
||||
const uid = getUserId();
|
||||
|
||||
userStore.userOption.roleOpts.length === 0
|
||||
? await userStore.fetchRoleOption()
|
||||
: '';
|
||||
|
||||
const userRoles = getRole();
|
||||
if (userRoles) {
|
||||
filterRole.value = userRoles.filter(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue