switch back to onmounted

This commit is contained in:
Georges-Antoine Assi
2025-08-23 10:56:34 -04:00
parent 08ae380087
commit 45974babb2
3 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ import storePlatforms from "@/stores/platforms";
import type { Events } from "@/types/emitter";
import type { Emitter } from "mitt";
import { storeToRefs } from "pinia";
import { inject, nextTick, onBeforeMount, watch } from "vue";
import { inject, nextTick, onMounted, watch } from "vue";
import { useDisplay } from "vuetify";
import { useI18n } from "vue-i18n";
import { useRouter } from "vue-router";
@@ -210,7 +210,7 @@ function setFilters() {
]);
}
onBeforeMount(async () => {
onMounted(async () => {
const {
search: urlSearch,
filterMatched: urlFilteredMatch,

View File

@@ -16,7 +16,7 @@ import { views } from "@/utils";
import { isNull, throttle } from "lodash";
import type { Emitter } from "mitt";
import { storeToRefs } from "pinia";
import { inject, onBeforeMount, onBeforeUnmount, ref, watch } from "vue";
import { inject, onMounted, onBeforeUnmount, ref, watch } from "vue";
import { onBeforeRouteUpdate, useRoute, useRouter } from "vue-router";
const props = defineProps<{
@@ -163,7 +163,7 @@ function resetGallery() {
noCollectionError.value = false;
}
onBeforeMount(async () => {
onMounted(async () => {
const routeCollectionId = route.params.collection;
currentPlatform.value = null;

View File

@@ -16,7 +16,7 @@ import { views } from "@/utils";
import type { Emitter } from "mitt";
import { isNull, throttle } from "lodash";
import { storeToRefs } from "pinia";
import { inject, onBeforeMount, onBeforeUnmount, ref, watch } from "vue";
import { inject, onMounted, onBeforeUnmount, ref, watch } from "vue";
import { onBeforeRouteUpdate, useRoute } from "vue-router";
const route = useRoute();
@@ -161,7 +161,7 @@ function resetGallery() {
noPlatformError.value = false;
}
onBeforeMount(async () => {
onMounted(async () => {
const routePlatformId = Number(route.params.platform);
currentCollection.value = null;