feat: ajout d'une nouvelle route pour les mangas et mise à jour de la Sidebar pour rediriger vers cette route

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-03-26 21:52:48 +01:00
parent 22cf4eb186
commit 7c7b65128d
2 changed files with 7 additions and 4 deletions

View File

@@ -29,6 +29,11 @@ const routes = [
name: 'home',
component: HomePage
},
{
path: '/manga',
name: 'manga',
component: HomePage
},
{
path: '/manga/:id',
name: 'manga-details',

View File

@@ -22,7 +22,6 @@
</template>
<script setup>
import { useRoute } from 'vue-router';
import {
BookOpenIcon,
PlusIcon,
@@ -36,7 +35,6 @@
} from '@heroicons/vue/24/solid';
import MenuGroup from './sidebar/MenuGroup.vue';
const route = useRoute();
const props = defineProps({
isOpen: {
type: Boolean,
@@ -48,8 +46,8 @@
{
icon: BookOpenIcon,
text: 'Mangas',
to: '/',
id: 'mangas',
to: '/manga',
id: 'manga',
subItems: [
{ icon: PlusIcon.render, text: 'Ajouter un nouveau', to: '/add' },
{