From 1e18f0bcee0358e13c0e2cb750d17cd7ef5bf4d6 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期一, 07 八月 2023 17:55:21 +0800 Subject: [PATCH] 油烟检测系统 --- src/router/index.ts | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 4113b58..9eb7b67 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') + }, ], }, @@ -139,8 +139,8 @@ { path: '/sfc', component: () => import('@/sfc/MainTest.vue') - - } + }, + ] }) -- Gitblit v1.9.3