recursive navigation for merge

This commit is contained in:
2025-10-15 01:28:52 +02:00
parent 196f2cde20
commit 852587bd70

View File

@@ -1,5 +1,5 @@
<template> <template>
<TrangaPage :back="{ href: `/manga/${mangaId}/merge/`, text: 'Back', icon: 'i-lucide-arrow-left' }"> <TrangaPage :back="{ href: backUrl ?? `/manga/${mangaId}/merge/`, text: 'Back', icon: 'i-lucide-arrow-left' }">
<div class="flex flex-col items-center justify-center gap-10"> <div class="flex flex-col items-center justify-center gap-10">
<div class="flex flex-row justify-evenly items-center"> <div class="flex flex-row justify-evenly items-center">
<MangaCard v-if="manga" :manga="manga" :expanded="true" /> <MangaCard v-if="manga" :manga="manga" :expanded="true" />
@@ -25,6 +25,7 @@ const route = useRoute();
const targetId = route.params.targetId as string; const targetId = route.params.targetId as string;
const mangaId = route.params.mangaId as string; const mangaId = route.params.mangaId as string;
const path = route.fullPath; const path = route.fullPath;
const backUrl = route.query.return as string | undefined;
const { $api } = useNuxtApp(); const { $api } = useNuxtApp();
const reverse = ref(false); const reverse = ref(false);