| | |
| | | import { createRouter, createWebHistory } from 'vue-router'; |
| | | import { createRouter, createWebHashHistory } from 'vue-router'; |
| | | |
| | | const router = createRouter({ |
| | | history: createWebHistory(import.meta.env.BASE_URL), |
| | | // history: createWebHistory(import.meta.env.BASE_URL), |
| | | history: createWebHashHistory(), |
| | | routes: [ |
| | | { |
| | | path: '/', |
| | | redirect: '/index/hmode' |
| | | redirect: '/login' |
| | | }, |
| | | // 登陆页面 |
| | | { |
| | |
| | | name: 'historyMode', |
| | | component: () => import('@/views/historymode/HistoryMode.vue') |
| | | }, |
| | | { |
| | | path: 'hmode2', |
| | | name: 'historyMode2', |
| | | component: () => import('@/views/historymode/HistoryMode2.vue') |
| | | }, |
| | | // 走航监测 |
| | | { |
| | | path: 'rmode', |