From 6587e4f5223b1412b9b02294cf08a61c0a40c870 Mon Sep 17 00:00:00 2001 From: Sirttas Date: Tue, 19 Sep 2023 12:02:44 +0200 Subject: [PATCH] rourtes --- src/main.ts | 11 +---------- src/pages/Market.vue | 2 +- src/pages/market/Track.vue | 6 ++++++ src/routes.ts | 12 ++++++++++++ 4 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 src/pages/market/Track.vue create mode 100644 src/routes.ts diff --git a/src/main.ts b/src/main.ts index a3aa039..f0ad199 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,18 +1,9 @@ import { createApp } from 'vue'; import { createRouter, createWebHistory } from 'vue-router'; import App from './App.vue'; +import { routes } from './routes'; import './style.css'; -const routes = [ - { path: '/', component: () => import('@/pages/Index.vue') }, - { path: '/reprocess', component: () => import('@/pages/Reprocess.vue') }, - { path: '/market', component: () => import('@/pages/Market.vue'), children: [ - { path: '', redirect: '/market/scan' }, - { path: 'scan', component: () => import('@/pages/market/Scan.vue') }, - ] }, - { path: '/tools', component: () => import('@/pages/Tools.vue') }, -]; - const router = createRouter({ history: createWebHistory(), routes, diff --git a/src/pages/Market.vue b/src/pages/Market.vue index e8604f1..911831b 100644 --- a/src/pages/Market.vue +++ b/src/pages/Market.vue @@ -19,7 +19,7 @@ import { RouterLink, RouterView } from 'vue-router';