文件名从 src/router/index.ts 修改 |
| | |
| | | import { createRouter, createWebHistory } from 'vue-router' |
| | | import { createRouter, createWebHashHistory } from 'vue-router' |
| | | |
| | | |
| | | const router = createRouter({ |
| | | history: createWebHistory(import.meta.env.BASE_URL), |
| | | history: createWebHashHistory(), |
| | | routes: [ |
| | | { |
| | | path: '/layout', |
| | | name: 'home', |
| | | meta: { title: '棣栭〉' }, |
| | | component: () => import('@/components/layout/AppLayout.vue'), |
| | | children: [ |
| | | |
| | | children: |
| | | [ |
| | | // 鏁版嵁鍒嗛櫓妯″瀷 |
| | | { |
| | | path: "/avgDay", |
| | |
| | | { |
| | | path: "/riskrank", |
| | | name: 'riskrank', |
| | | meta: { title: '鏁版嵁椋庨櫓鎺掑悕' }, |
| | | meta: { title: '缁煎悎椋庨櫓鎺掑悕' }, |
| | | component: () => import('@/views/line_graph/SiteComprehensiveRskRanking.vue') |
| | | }, |
| | | |
| | |
| | | meta: { title: '鏁版嵁鎺ュ叆閰嶇疆' }, |
| | | component: () => import('@/views/setting/SetConfiguration.vue') |
| | | }, |
| | | |
| | | ], |
| | | ], |
| | | }, |
| | | |
| | | |
| | | // 鐧婚檰椤甸潰 |
| | | { |
| | | path: "/login", |