1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| import { createRouter, createWebHashHistory } from 'vue-router'
|
| const routes = [
| //默认
| {
| path: '/',
| redirect: '/Monitor/List'
| },
| {
| path: '/Monitor/List',
| name: 'MonitorList',
| component: () => import(/* webpackChunkName: "home" */ '../views/HomeView.vue')
| },
| ]
|
| const router = createRouter({
| history: createWebHashHistory(),
| routes
| })
|
| export default router
|
|