feat: ajout d'une route GetMangaByIdHandler.php et fix de la SearchBar.vue

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-03-25 22:44:26 +01:00
parent ed0a075a6c
commit d9e935f7de
26 changed files with 519 additions and 79 deletions

View File

@@ -159,7 +159,7 @@
</template>
<script setup>
import { ref, onMounted, onUnmounted, computed } from 'vue';
import { ref, onMounted, onUnmounted, computed, watch } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { useMangaStore } from '../../application/store/mangaStore';
import { storeToRefs } from 'pinia';
@@ -238,6 +238,13 @@ const loadData = async () => {
]);
};
// Ajouter le watcher sur l'ID de la route
watch(() => route.params.id, (newId, oldId) => {
if (newId !== oldId) {
loadData();
}
});
// Actions sur les chapitres et volumes
const searchChapter = async (chapter) => {
// TODO: Implémenter la recherche de chapitre