1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| import { createMemoryHistory, createRouter } from 'vue-router';
|
|
| const routes = [
| {
| path: '/',
| redirect: '/index'
| },
| { path: '/index', component: () => import('@/views/home/index.vue') },
| { path: '/menu', component: () => import('@/views/menu/index.vue') },
| ];
|
| const router = createRouter({
| history: createMemoryHistory(),
| routes,
| });
|
| export default router;
|
|