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:
parent
22cf4eb186
commit
7c7b65128d
@@ -29,6 +29,11 @@ const routes = [
|
|||||||
name: 'home',
|
name: 'home',
|
||||||
component: HomePage
|
component: HomePage
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/manga',
|
||||||
|
name: 'manga',
|
||||||
|
component: HomePage
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/manga/:id',
|
path: '/manga/:id',
|
||||||
name: 'manga-details',
|
name: 'manga-details',
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useRoute } from 'vue-router';
|
|
||||||
import {
|
import {
|
||||||
BookOpenIcon,
|
BookOpenIcon,
|
||||||
PlusIcon,
|
PlusIcon,
|
||||||
@@ -36,7 +35,6 @@
|
|||||||
} from '@heroicons/vue/24/solid';
|
} from '@heroicons/vue/24/solid';
|
||||||
import MenuGroup from './sidebar/MenuGroup.vue';
|
import MenuGroup from './sidebar/MenuGroup.vue';
|
||||||
|
|
||||||
const route = useRoute();
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
isOpen: {
|
isOpen: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -48,8 +46,8 @@
|
|||||||
{
|
{
|
||||||
icon: BookOpenIcon,
|
icon: BookOpenIcon,
|
||||||
text: 'Mangas',
|
text: 'Mangas',
|
||||||
to: '/',
|
to: '/manga',
|
||||||
id: 'mangas',
|
id: 'manga',
|
||||||
subItems: [
|
subItems: [
|
||||||
{ icon: PlusIcon.render, text: 'Ajouter un nouveau', to: '/add' },
|
{ icon: PlusIcon.render, text: 'Ajouter un nouveau', to: '/add' },
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user