1
0
mirror of synced 2025-12-12 17:30:59 +08:00
Files
vxe-table/examples/router/index.ts
2024-05-30 18:37:56 +08:00

51 lines
1.0 KiB
TypeScript

import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import StartInstall from '../views/start/StartInstall.vue'
const routes: Array<RouteRecordRaw> = [
{
path: '/*',
redirect: {
name: 'StartInstall'
}
},
{
path: '/',
redirect: {
name: 'StartInstall'
}
},
{
path: '/table/start/install',
name: 'StartInstall',
component: StartInstall
},
{
path: '/component/toolbar',
name: 'ToolbarTest',
component: () => import('../views/toolbar/ToolbarTest.vue')
},
{
path: '/component/table1',
name: 'TableTest1',
component: () => import('../views/table/TableTest1.vue')
},
{
path: '/component/table2',
name: 'TableTest2',
component: () => import('../views/table/TableTest2.vue')
},
{
path: '/component/grid',
name: 'GridTest',
component: () => import('../views/grid/GridTest.vue')
}
]
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes
})
export default router