mirror of
https://github.com/rommapp/romm.git
synced 2026-02-19 07:50:57 +01:00
switch back to onmounted
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user