diff --git a/src/store/modules/users.js b/src/store/modules/users.js
index c3603077..e96dbe09 100644
--- a/src/store/modules/users.js
+++ b/src/store/modules/users.js
@@ -2,11 +2,15 @@ import { fetchUsers } from '@/api/users'
const user = {
state: {
- fetchedUsers: []
+ fetchedUsers: [],
+ loading: true
},
mutations: {
SET_USERS: (state, users) => {
state.fetchedUsers = users
+ },
+ SET_LOADING: (state, status) => {
+ state.loading = status
}
},
actions: {
@@ -14,6 +18,7 @@ const user = {
const response = await fetchUsers()
commit('SET_USERS', response.data)
+ commit('SET_LOADING', false)
}
}
}
diff --git a/src/views/layout/Layout.vue b/src/views/layout/Layout.vue
index 0e14f160..f24ef044 100644
--- a/src/views/layout/Layout.vue
+++ b/src/views/layout/Layout.vue
@@ -4,7 +4,6 @@