frontend: refactor model type management and catalog routes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user