Mr.Zhang
2023-08-22 ae2fad05393d2bbb94ec46712a1a717c85e766f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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: '/',
      name: 'home',
      component: indexView
    },
    {
      path: '/process',
      name: 'process',
      component: processView
    }
  ]
})
 
export default router