routing configuration is as follows:
import Vue from "vue"
import Router from "vue-router"
import Group from "@/components/groupManagement/group.vue"
/*Group*/
import Group_list from "@/components/groupManagement/group/group_list.vue"
import Node_list from "@/components/groupManagement/node/node_list.vue"
import Task from "@/components/taskManagement/task_list.vue"
import Timing from "@/components/taskManagement/timing_list.vue"
import Script from "@/components/scriptManagement/script_list.vue"
import Dispatch from "@/components/dispatchManagement/dispatch_list.vue"
Vue.use(Router)
export default new Router({
mode: "history",
routes: [
{
path: "/Group",
redirect: "/Group/Group_list"
},
{
path: "/Group",
component: Group,
children:[
{
path:"Group_list",
component:Group_list
},
{
path:"Node_list",
component:Node_list
}
]
},
{
path: "/Task",
component: Task
},
{
path: "/Script",
component: Script
},
{
path: "/Dispatch",
component: Dispatch
},
{
path: "*",
component: Group
}
]
})