123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- import { createRouter, createWebHistory } from 'vue-router'
- const constantRouterMap = [
- {
- path: '/',
- name: 'Scrren',
- component: () => import('@/views/screen/ScreenViewBlack/index.vue'),
- meta: {
- title: "智慧总控"
- }
- },
- {
- path: '/screen-light',
- name: 'ScreenLight',
- component: () => import('@/views/screen/ScreenView.vue'),
- meta: {
- title: "智慧总控"
- }
- },
- {
- path: '/carbon',
- name: 'carbon',
- component: () => import('@/views/carbon/index.vue'),
- meta: {
- title: "碳汇核算"
- }
- },
- {
- path: '/water-warn-content',
- name: 'WaterWarnContent',
- component: () => import('@/views/single/WaterWarnContent.vue'),
- meta: {
- title: "报警详情"
- }
- },
- {
- path: '/env',
- name: 'Env',
- component: () => import('@/views/env/index.vue'),
- meta: {
- title: "环境区分"
- }
- },
- {
- path: '/login',
- name: 'Login',
- component: () => import('@/views/login/LoginView.vue'),
- meta: {
- title: "登录"
- }
- },
- {
- path: '/',
- name: 'theBaseLayout',
- component: () => import('@/components/Layout/ThePublicLayout.vue'),
- children: [
- {
- path: 'answer',
- name: 'Answer',
- component: () => import('@/views/answer/AnswerView.vue'),
- meta: {
- title: '专家问答'
- }
- },
- {
- path: 'water-warn',
- name: 'WaterWarn',
- component: () => import('@/views/analyse/WaterView.vue'),
- meta: {
- title: '水质报警'
- }
- },
- {
- path: 'pymol-warn',
- name: 'PymolWarn',
- component: () => import('@/views/analyse/PymolView.vue'),
- meta: {
- title: '生化报警'
- }
- },
- {
- path: 'forecast-warn',
- name: 'ForecastView',
- component: () => import('@/views/analyse/ForecastView.vue'),
- meta: {
- title: '水质报警'
- }
- },
- {
- path: 'work-order',
- name: 'WorKOrder',
- component: () => import('@/views/analyse/WorkOrder.vue'),
- meta: {
- title: '工艺运行诊断'
- }
- },
- {
- path: 'work',
- name: 'WorkView',
- component: () => import('@/views/work/WorkView.vue'),
- meta: {
- title: '辅助办公'
- }
- },
- {
- path: 'medicinal',
- name: 'MedicinalView',
- component: () => import('@/views/control/MedicinalView.vue'),
- meta: {
- title: '智适应投药'
- }
- },
- {
- path: 'laboratory',
- name: 'DataView',
- component: () => import('@/views/data/DataView.vue'),
- meta: {
- title: '智能国标化验室数据'
- }
- },
- {
- path: 'comparison',
- name: 'ComparisonView',
- component: () => import('@/views/data/ComparisonView.vue'),
- meta: {
- title: '预测数据'
- }
- },
- ]
- },
- {
- path: '/',
- name: 'userLayout',
- component: () => import('@/components/Layout/ThePublicLayout.vue'),
- children: [
- {
- path: 'user',
- name: 'User',
- component: () => import('@/views/user/index.vue'),
- meta: {
- title: '用户中心'
- }
- },
- ]
- },
- ]
- const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
- routes: constantRouterMap,
- scrollBehavior: () => ({ left: 0, top: 0 })
- })
- export default router;
|