| | |
| | | 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: '/layout', |
| | |
| | | name: "ErrorPage", |
| | | component: () => import('@/views/ErrorPage.vue') |
| | | }, |
| | | { |
| | | path: '/about', |
| | | name: 'about', |
| | | // route level code-splitting |
| | | // this generates a separate chunk (About.[hash].js) for this route |
| | | // which is lazy-loaded when the route is visited. |
| | | component: () => import('../views/AboutView.vue') |
| | | }, |
| | | { |
| | | path:"/graph", |
| | | name:'fst', |
| | | path:"/tsdata", |
| | | name:'fst1', |
| | | component: () => import('@/test/TestSelect.vue') |
| | | |
| | | }, |
| | | { |
| | | path:"/tdata", |
| | | name:'test1', |
| | | component: () => import('@/test/TestDrawer.vue') |
| | | component: () => import('@/test/TestNoData.vue') |
| | | |
| | | }, |
| | | { |
| | |
| | | component: () => import('@/views/analysis/graph/DayAverage.vue') |
| | | }, |
| | | |
| | | |
| | | { |
| | | path: '/getdata', |
| | | component: () => import('@/views/getdata/GetData.vue') |
| | | |
| | | }, |
| | | |
| | | { |
| | | path: '/tte', |
| | | component: () => import('@/views/getdata/TestZm.vue') |
| | | }, |
| | | |
| | | ], |
| | | }, |
| | |
| | | redirect:'/login' |
| | | }, |
| | | |
| | | { |
| | | path: '/sfc', |
| | | component: () => import('@/sfc/MainTest.vue') |
| | | |
| | | } |
| | | |
| | | ] |
| | | }) |