123456789101112131415161718192021 |
- import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
- const routes: Array<RouteRecordRaw> = [
- {
- path: '/index',
- name: 'index',
- component: () => import('../views/index.vue')
- },
- {
- path: '/:id',
- name: 'index',
- component: () => import('../views/index.vue')
- }
- ]
- const router = createRouter({
- history: createWebHashHistory(),
- routes
- })
- export default router
|