diff --git a/nginx/vue/src/components/home/Consumption.vue b/nginx/vue/src/components/home/Consumption.vue
index 1e6c6b2..3af48fb 100644
--- a/nginx/vue/src/components/home/Consumption.vue
+++ b/nginx/vue/src/components/home/Consumption.vue
@@ -1,6 +1,4 @@
diff --git a/nginx/vue/src/components/home/Favorites.vue b/nginx/vue/src/components/home/Favorites.vue
index c2caf1d..17b52a2 100644
--- a/nginx/vue/src/components/home/Favorites.vue
+++ b/nginx/vue/src/components/home/Favorites.vue
@@ -1,6 +1,4 @@
diff --git a/nginx/vue/src/components/home/Feed.vue b/nginx/vue/src/components/home/Feed.vue
index 2cff804..e78c8f4 100644
--- a/nginx/vue/src/components/home/Feed.vue
+++ b/nginx/vue/src/components/home/Feed.vue
@@ -35,10 +35,6 @@ function prevPost() {
function deletePost() {
postsStore.deletePost(post.value);
}
-
-onBeforeMount(() => {
- postsStore.fetchPosts();
-});
diff --git a/nginx/vue/src/stores/activity.js b/nginx/vue/src/stores/activity.js
index da4147f..95103d4 100644
--- a/nginx/vue/src/stores/activity.js
+++ b/nginx/vue/src/stores/activity.js
@@ -25,6 +25,7 @@ export const useActivityStore = defineStore("activity", () => {
}
}
+ fetchActivity();
return {
activity,
activityCount,
diff --git a/nginx/vue/src/stores/posts.js b/nginx/vue/src/stores/posts.js
index 46a98d3..ea3f202 100644
--- a/nginx/vue/src/stores/posts.js
+++ b/nginx/vue/src/stores/posts.js
@@ -40,6 +40,9 @@ export const usePostsStore = defineStore("posts", () => {
console.error("Delete failed:", err);
}
}
+
+ fetchPosts();
+
return {
posts,