routes can be displayed normally, but they always report errors
Code:
import Vue from "vue"
Vue.use (Router)
export default new Router ({
/ / mode: "history",
routes: [
{
path: "/",
redirect: "/Group/Group_list"
},
{
path: "/Group",
component: (resolve) => require(["@/components/groupManagement/group"], resolve),
redirect: "/Group/Group_list",
meta:{
title: ""
},
children:[
{
path:"Group_list",
component:(resolve) => require(["@/components/groupManagement/group/group_list"], resolve),
meta: {
title: "",
icon:"fa fa-object-group"
}
},
{
path:"Node_list",
component:(resolve) => require(["@/components/groupManagement/node/node_list"], resolve),
meta: {
title: "",
icon:"fa fa-sticky-note-o"
}
}
]
},
{
path: "/Task",
component:(resolve) => require(["@/components/taskManagement/task_list.vue"], resolve),
meta:{ title:"" },
},
{
path: "/Script",
component:(resolve) => require(["@/components/scriptManagement/script_list.vue"], resolve),
meta:{ title:"" },
},
{
path: "/Dispatch",
component:(resolve) => require(["@/components/dispatchManagement/dispatch_list.vue"], resolve),
meta:{ title:"" },
},
{
path: "*",
component:(resolve) => require(["@/components/groupManagement/group.vue"], resolve),
redirect:"/Group/Group_list",
}
]
})