frontend: refactor model type management and catalog routes

This commit is contained in:
Matthieu
2025-09-25 16:14:22 +02:00
parent 801fe5be95
commit 8e3894bfe2
9 changed files with 370 additions and 10 deletions

View File

@@ -7,10 +7,10 @@
</p>
</div>
<div class="flex flex-wrap items-center justify-center gap-3">
<NuxtLink to="/models/components" class="btn btn-primary">
<NuxtLink to="/component-catalog" class="btn btn-primary">
Catalogue de composant
</NuxtLink>
<NuxtLink to="/models/pieces" class="btn btn-outline">
<NuxtLink to="/pieces-catalog" class="btn btn-outline">
Catalogue de pièce
</NuxtLink>
</div>
@@ -20,6 +20,6 @@
<script setup>
const route = useRoute()
if (route.fullPath === '/models') {
navigateTo('/models/components', { replace: true })
navigateTo('/component-catalog', { replace: true })
}
</script>