mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-12 06:59:04 +02:00
Rename stores method which fetch fresh api data
This commit is contained in:
6
resources/js_vue3/stores/groups.js
vendored
6
resources/js_vue3/stores/groups.js
vendored
@ -22,10 +22,10 @@ export const useGroups = defineStore({
|
||||
actions: {
|
||||
|
||||
/**
|
||||
* Refreshes the groups collection using the backend
|
||||
* Fetches the groups collection from the backend
|
||||
*/
|
||||
refresh() {
|
||||
groupService.getAll().then(response => {
|
||||
async fetch() {
|
||||
await groupService.getAll().then(response => {
|
||||
this.items = response.data
|
||||
})
|
||||
},
|
||||
|
Reference in New Issue
Block a user