mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-26 18:25:09 +01:00
Set Groups fetching async on user login
This commit is contained in:
parent
791421b105
commit
b9eb4f0afb
2
resources/js_vue3/stores/user.js
vendored
2
resources/js_vue3/stores/user.js
vendored
@ -44,7 +44,7 @@ export const useUserStore = defineStore({
|
|||||||
|
|
||||||
if (this.isAuthenticated) {
|
if (this.isAuthenticated) {
|
||||||
await accounts.fetch()
|
await accounts.fetch()
|
||||||
await groups.fetch()
|
groups.fetch()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
accounts.$reset()
|
accounts.$reset()
|
||||||
|
Loading…
Reference in New Issue
Block a user