index.js 1.35 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"),
            },
        ]
    },
]

const route = [
    {
        path: '/',
        redirect: '/Main/DataRerun',
    },
    ...menuRoute
]

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

export default router