cleanup routes

This commit is contained in:
2024-05-15 16:11:17 +02:00
parent 2eea436641
commit 4012dded66
2 changed files with 4 additions and 4 deletions

View File

@@ -6,13 +6,13 @@ import { RouterLink, RouterView } from 'vue-router';
<template> <template>
<div class="mt-4"> <div class="mt-4">
<div class="flex border-b-2 border-emerald-500"> <div class="flex border-b-2 border-emerald-500">
<RouterLink :to="{name: 'market-type'}" class="tab"> <RouterLink :to="{name: 'market-types'}" class="tab">
<span>Item Info</span> <span>Item Info</span>
</RouterLink> </RouterLink>
<RouterLink to="/market/scan" class="tab"> <RouterLink to="/market/scan" class="tab">
<span>Scan</span> <span>Scan</span>
</RouterLink> </RouterLink>
<RouterLink to="/market/acquisition" class="tab"> <RouterLink to="/market/acquisitions" class="tab">
<span>Acquisitions</span> <span>Acquisitions</span>
</RouterLink> </RouterLink>
</div> </div>

View File

@@ -5,8 +5,8 @@ export const routes: RouteRecordRaw[] = [
{ path: '/callback', name: 'callback', component: () => import('@/pages/Index.vue') }, { path: '/callback', name: 'callback', component: () => import('@/pages/Index.vue') },
{ path: '/reprocess', component: () => import('@/pages/Reprocess.vue') }, { path: '/reprocess', component: () => import('@/pages/Reprocess.vue') },
{ path: '/market', component: () => import('@/pages/Market.vue'), children: [ { path: '/market', component: () => import('@/pages/Market.vue'), children: [
{ path: '', redirect: '/market/type' }, { path: '', redirect: '/market/types' },
{ path: 'type/:type?', name: 'market-type', component: () => import('@/pages/market/TypeInfo.vue') }, { path: 'types/:type?', name: 'market-types', component: () => import('@/pages/market/TypeInfo.vue') },
{ path: 'scan', component: () => import('@/pages/market/Scan.vue') }, { path: 'scan', component: () => import('@/pages/market/Scan.vue') },
{ path: 'acquisitions', component: () => import('@/pages/market/Acquisitions.vue') }, { path: 'acquisitions', component: () => import('@/pages/market/Acquisitions.vue') },
] }, ] },