87 lines
2.1 KiB
JavaScript
Raw Normal View History

2025-03-14 17:52:05 +08:00
/*
* @Description: router
* @Author: zenghua.wang
* @Date: 2023-06-20 11:48:41
* @LastEditors: zenghua.wang
* @LastEditTime: 2025-03-11 16:51:49
*/
import { createRouter, createWebHistory } from 'vue-router';
import Layout from '@/layouts/index.vue';
export const constantRoutes = [
{
path: '/sub-government-screen-service/404',
name: '404',
component: () => import('@/views/error/404.vue'),
hidden: true,
},
{
path: '/sub-government-screen-service/403',
name: '403',
component: () => import('@/views/error/403.vue'),
hidden: true,
},
{
path: '/sub-government-screen-service/home',
name: 'home',
component: () => import('@/views/home/index.vue'),
},
{
path: '/sub-government-screen-service/land',
name: 'land',
component: () => import('@/views/land/index.vue'),
hidden: true,
},
{
path: '/sub-government-screen-service/inputs',
name: 'inputs',
component: () => import('@/views/inputs/index.vue'),
hidden: true,
},
{
path: '/sub-government-screen-service/entities',
name: 'entities',
component: () => import('@/views/entities/index.vue'),
hidden: true,
},
{
path: '/sub-government-screen-service/breed',
name: 'breed',
component: () => import('@/views/breed/index.vue'),
hidden: true,
},
{
path: '/sub-government-screen-service/plant',
name: 'plant',
component: () => import('@/views/plant/index.vue'),
hidden: true,
},
{
path: '/sub-government-screen-service/trace',
name: 'trace',
component: () => import('@/views/trace/index.vue'),
hidden: true,
},
{
path: '/sub-government-screen-service/early',
name: 'early',
component: () => import('@/views/early/index.vue'),
hidden: true,
},
];
/**
* @Title notFoundRouter(找不到路由)
*/
export const notFoundRouter = {
path: '/sub-government-screen-service/:pathMatch(.*)',
name: 'notFound',
2025-03-14 18:08:07 +08:00
redirect: '/sub-government-screen-service/home',
2025-03-14 17:52:05 +08:00
};
const router = createRouter({
history: createWebHistory(),
routes: constantRoutes,
});
export default router;