favorites and other should be done?
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { onBeforeMount } from "vue";
|
|
||||||
|
|
||||||
import AutoScroll from "@/components/util/AutoScroll.vue";
|
import AutoScroll from "@/components/util/AutoScroll.vue";
|
||||||
import OptionalLinkTable from "@/components/util/OptionalLinkTable.vue";
|
import OptionalLinkTable from "@/components/util/OptionalLinkTable.vue";
|
||||||
import Header from "@/components/text/Header.vue";
|
import Header from "@/components/text/Header.vue";
|
||||||
@@ -8,10 +6,6 @@ import Header from "@/components/text/Header.vue";
|
|||||||
import { useActivityStore } from "@/stores/activity";
|
import { useActivityStore } from "@/stores/activity";
|
||||||
|
|
||||||
const activityStore = useActivityStore();
|
const activityStore = useActivityStore();
|
||||||
|
|
||||||
onBeforeMount(() => {
|
|
||||||
activityStore.fetchActivity();
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { onBeforeMount } from "vue";
|
|
||||||
|
|
||||||
import Header from "@/components/text/Header.vue";
|
import Header from "@/components/text/Header.vue";
|
||||||
import OptionalLinkTable from "@/components/util/OptionalLinkTable.vue";
|
import OptionalLinkTable from "@/components/util/OptionalLinkTable.vue";
|
||||||
import AutoScroll from "@/components/util/AutoScroll.vue";
|
import AutoScroll from "@/components/util/AutoScroll.vue";
|
||||||
@@ -8,10 +6,6 @@ import AutoScroll from "@/components/util/AutoScroll.vue";
|
|||||||
import { useFavoritesStore } from "@/stores/favorites";
|
import { useFavoritesStore } from "@/stores/favorites";
|
||||||
|
|
||||||
const favoritesStore = useFavoritesStore();
|
const favoritesStore = useFavoritesStore();
|
||||||
|
|
||||||
onBeforeMount(() => {
|
|
||||||
favoritesStore.fetchFavorites();
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ function prevPost() {
|
|||||||
function deletePost() {
|
function deletePost() {
|
||||||
postsStore.deletePost(post.value);
|
postsStore.deletePost(post.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
onBeforeMount(() => {
|
|
||||||
postsStore.fetchPosts();
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export const useActivityStore = defineStore("activity", () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fetchActivity();
|
||||||
return {
|
return {
|
||||||
activity,
|
activity,
|
||||||
activityCount,
|
activityCount,
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ export const usePostsStore = defineStore("posts", () => {
|
|||||||
console.error("Delete failed:", err);
|
console.error("Delete failed:", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fetchPosts();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
posts,
|
posts,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user