1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| import { createRouter, createWebHashHistory } from 'vue-router'
| // import HomeView from '../views/HomeView.vue'
| import indexView from '../views/index.vue'
| import processView from '../views/process.vue'
| // console.log(import.meta.env.VITE_BASE_CONTEXT);
| const router = createRouter({
|
| history: createWebHashHistory(import.meta.env.VITE_BASE_CONTEXT),
| // history: createWebHistory(import.meta.env.VITE_BASE_CONTEXT),
| routes: [
| {
| path: '/',
| redirect: '/home',
|
| },
| {
| path: '/home',
| name: 'home',
| component: indexView
| },
| {
| path: '/process',
| name: 'process',
| component: processView
| }
| ]
| })
|
| export default router
|
|