refactor: clean & attribute

This commit is contained in:
puriphatt 2024-04-23 11:13:57 +00:00
parent 8cba38f538
commit 879e256a1e
5 changed files with 20 additions and 15 deletions

View file

@ -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(