SocialNetworks_duan/src/router/index.js

59 lines
1.6 KiB
JavaScript

import { createRouter, createWebHistory } from "vue-router"
const routes = [
{ path: "/", redirect: "/home" },
{
path: "/home",
component: () => import("@/layout/index.vue"),
children: [
{
path: "/key-node-1",
component: () => import("@/views/KeyNodeDiscern/anchorRecommendation/index.vue")
},
{
path: "/key-node-2",
component: () => import("@/views/KeyNodeDiscern/opinionLeader/index.vue")
},
{
path: "/key-node-3",
component: () => import("@/views/KeyNodeDiscern/bridgeCommunication/index.vue")
},
{
path: "/link-prediction-1",
component: () => import("@/views/LinkPrediction/characterInteraction/index.vue")
},
{
path: "/link-prediction-2",
component: () => import("@/views/LinkPrediction/socialGroups/index.vue")
},
{
path: "/link-prediction-3",
component: () => import("@/views/LinkPrediction/charactersHiddenInteraction/index.vue")
},
{
path: "/group-evolution-1",
component: () => import("@/views/GroupEvolution/groupIdentifyDiscovery/index.vue")
},
{
path: "/group-evolution-2",
component: () => import("@/views/GroupEvolution/groupStructure/index.vue")
},
{
path: "/group-evolution-3",
component: () => import("@/views/GroupEvolution/groupMember/index.vue")
},
{
path: "/group-evolution-4",
component: () => import("@/views/GroupEvolution/abnormalGroup/index.vue")
}
]
}
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router