| | |
| | | import { createRouter, createWebHistory } from 'vue-router' |
| | | import HomeView from '../views/HomeView.vue' |
| | | 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: createWebHistory(import.meta.env.BASE_URL), |
| | | |
| | | 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: '/index', |
| | | // name: 'index', |
| | | // component: indexView |
| | | // } |
| | | { |
| | | path: '/process', |
| | | name: 'process', |
| | | component: processView |
| | | } |
| | | ] |
| | | }) |
| | | |