Commit 333c48aa authored by 黄奎's avatar 黄奎

新增页面

parent 5cdd043e
This diff is collapsed.
This diff is collapsed.
const routes = [{ const routes = [{
path: "/", path: "/",
component: () =>
import("pages/user/login.vue")
},
{
path: "/login",
component: () =>
import("pages/user/login.vue")
},
{
path: "/home",
component: () =>
import("layouts/MainLayout.vue"),
children: [{
path: "",
component: () => component: () =>
import ("pages/user/login.vue") import("pages/Index.vue")
}, },
{ {
path: "/login", path: "/school/manager",
component: () => component: () =>
import ("pages/user/login.vue") import("pages/school/manager.vue")
}, },
{ {
path: "/home", path: "/school/teacher",
component: () => component: () =>
import ("layouts/MainLayout.vue"), import("pages/school/teacher.vue")
children: [{ },
path: "", {
component: () => path: "/school/assistant",
import ("pages/Index.vue") component: () =>
}, import("pages/school/assistant.vue")
{ },
path: "/school/manager", {
component: () => path: "/school/classmanage", //班级管理
import ("pages/school/manager.vue") component: () =>
}, import("pages/school/classmanage.vue")
{ },
path: "/school/teacher", {
component: () => path: "/school/student", //学员管理
import ("pages/school/teacher.vue") component: () =>
}, import("pages/school/student.vue")
{ },
path: "/school/assistant", {
component: () => path: "/system/menu", //菜单管理
import ("pages/school/assistant.vue") component: () =>
}, import("pages/system/menu.vue")
{ },
path: "/system/menu", //菜单管理 {
component: () => path: "/system/role", //角色管理
import ("pages/system/menu.vue")
},
{
path: "/system/role", //角色管理
component: () =>
import ("pages/system/role.vue")
},
{
path: "/course/catagory", //课程分类
component: () =>
import ("pages/course/catagory.vue")
},
{
path: "/course/course", //课程管理
component: () =>
import ("pages/course/course.vue")
},
{
path: "/course/teachplan", //教案管理
component: () =>
import ("pages/course/teachplan.vue")
},
{
path: "/test", //API测试
component: () =>
import ("pages/test.vue")
},
]
},
// Always leave this as last one,
// but you can also remove it
{
path: "*",
component: () => component: () =>
import ("pages/Error404.vue") import("pages/system/role.vue")
} },
{
path: "/course/catagory", //课程分类
component: () =>
import("pages/course/catagory.vue")
},
{
path: "/course/course", //课程管理
component: () =>
import("pages/course/course.vue")
},
{
path: "/course/teachplan", //教案管理
component: () =>
import("pages/course/teachplan.vue")
},
{
path: "/test", //API测试
component: () =>
import("pages/test.vue")
},
]
},
// Always leave this as last one,
// but you can also remove it
{
path: "*",
component: () =>
import("pages/Error404.vue")
}
]; ];
export default routes; export default routes;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment