index.js 2.76 KB
import {createRouter, createWebHashHistory} from 'vue-router'

const menuRoute = [
    {
        path: '/Main',
        component: () => import("@/views/Main/Main.vue"),
        children: [
            {
                path: 'DataRerun',
                component: () => import("@/views/DataRerun/DataRerun.vue"),
            },
            {
                path: 'DataRepair',
                component: () => import("@/views/DataRepair/DataRepair.vue"),
            },
            {
                path: 'FeatureReExtract',
                component: () => import("@/views/FeatureReExtract/FeatureReExtract.vue"),
            },
            {
                path: 'FeatureLibraryRebuild',
                component: () => import("@/views/FeatureLibraryRebuild/FeatureLibraryRebuild.vue"),
            },
            {
                path: 'PeopleReContrast',
                component: () => import("@/views/PeopleReContrast/PeopleReContrast.vue"),
            },
            {
                path: 'SnapshotCluster',
                component: () => import("@/views/SnapshotCluster/SnapshotCluster.vue"),
            },
            {
                path: 'EquipmentTimeErrorVerification',
                component: () => import("@/views/EquipmentTimeErrorVerification/EquipmentTimeErrorVerification.vue"),
            },
            {
                path: 'FeatureComparisonVerification',
                component: () => import("@/views/FeatureComparisonVerification/FeatureComparisonVerification.vue"),
            },
            {
                path: 'ComparisonCapturedPictures',
                component: () => import("@/views/ComparisonCapturedPictures/ComparisonCapturedPictures.vue"),
            },
            {
                path: 'MinutePassenger',
                component: () => import("@/views/MinutePassenger/MinutePassenger.vue"),
            },
            {
                path: 'SystemLog',
                component: () => import("@/views/SystemLog/index.vue"),
            },
            {
                path: 'DataReplay',
                component: () => import("@/views/DataReplay/DataReplay.vue"),
            },
			{
			    path: 'Featurematching',
			    component: () => import("@/views/Featurematching/Featurematching.vue")
			},
            {
                path: 'equipmentDataRetransmission',
                component: () => import("@/views/equipmentDataRetransmission/equipmentDataRetransmission.vue"),
            },
        ]
    },
]

const route = [
    {
        path: '/',
        redirect: '/Main/DataRerun',
    },
    {
        path: '/test',
        component: () => import("@/views/Test/Test.vue"),
    },
    ...menuRoute
]

const router = createRouter(
    {
        history: createWebHashHistory(),
        routes: route
    }
)

export default router