|
|
@ -2,37 +2,36 @@ import { createRouter, createWebHistory } from 'vue-router' |
|
|
|
|
|
|
|
// 配置路由信息
|
|
|
|
const routes = [ |
|
|
|
{ path: '/', redirect: '/index' }, |
|
|
|
{ |
|
|
|
path: '/index', |
|
|
|
path: '/', |
|
|
|
name: 'index', |
|
|
|
component: () => import('@/views/Index'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/case', |
|
|
|
name: 'case', |
|
|
|
component: () => import('@/views/Case'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/soft-hardware', |
|
|
|
name: 'softHardware', |
|
|
|
component: () => import('@/views/SoftHardware'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/culture', |
|
|
|
name: 'culture', |
|
|
|
component: () => import('@/views/Culture'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/about', |
|
|
|
name: 'about', |
|
|
|
component: () => import('@/views/About'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/contact', |
|
|
|
name: 'contact', |
|
|
|
component: () => import('@/views/Contact'), |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// path: '/case',
|
|
|
|
// name: 'case',
|
|
|
|
// component: () => import('@/views/Case'),
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: '/soft-hardware',
|
|
|
|
// name: 'softHardware',
|
|
|
|
// component: () => import('@/views/SoftHardware'),
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: '/culture',
|
|
|
|
// name: 'culture',
|
|
|
|
// component: () => import('@/views/Culture'),
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: '/about',
|
|
|
|
// name: 'about',
|
|
|
|
// component: () => import('@/views/About'),
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: '/contact',
|
|
|
|
// name: 'contact',
|
|
|
|
// component: () => import('@/views/Contact'),
|
|
|
|
// },
|
|
|
|
] |
|
|
|
|
|
|
|
const router = createRouter({ |
|
|
|