From bab83405c39ae9ab8b6569ca29b1e9a6a3b04327 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期二, 08 八月 2023 09:50:10 +0800 Subject: [PATCH] 油烟监测 vue代码 --- src/router/index.ts | 37 ++++++++++++++++--------------------- 1 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 4113b58..f387d8e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,9 +1,8 @@ -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', @@ -36,24 +35,16 @@ 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') }, { @@ -120,7 +111,16 @@ component: () => import('@/views/analysis/graph/DayAverage.vue') }, - + { + path: '/getdata', + component: () => import('@/views/getdata/GetData.vue') + + }, + + { + path: '/tte', + component: () => import('@/views/getdata/TestZm.vue') + }, ], }, @@ -136,11 +136,6 @@ redirect:'/login' }, - { - path: '/sfc', - component: () => import('@/sfc/MainTest.vue') - - } ] }) -- Gitblit v1.9.3