mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02:00
refetch users on mount
This commit is contained in:
parent
a4bd2b7c00
commit
a372d354e6
1 changed files with 3 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ import FormUserRoles from '@/components/forms/user/FormUserRoles.vue'
|
|||
import type {Component} from 'vue'
|
||||
|
||||
// API data
|
||||
const {data: users, error, isLoading} = useUsers()
|
||||
const {data: users, error, isLoading, refetch: refetchUsers} = useUsers()
|
||||
const {data: me} = useCurrentUser()
|
||||
|
||||
|
||||
|
|
@ -129,6 +129,8 @@ watch(users, (users) => {
|
|||
}
|
||||
})
|
||||
|
||||
onMounted(() => refetchUsers())
|
||||
|
||||
|
||||
// Dialogs handling
|
||||
const userRecord = ref<components["schemas"]["UserDto"]>()
|
||||
|
|
|
|||
Loading…
Reference in a new issue