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

新增页面

parent 5cdd043e
This diff is collapsed.
This diff is collapsed.
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: () =>
import ("pages/user/login.vue")
},
{
path: "/login",
import("pages/Index.vue")
},
{
path: "/school/manager",
component: () =>
import ("pages/user/login.vue")
},
{
path: "/home",
import("pages/school/manager.vue")
},
{
path: "/school/teacher",
component: () =>
import ("layouts/MainLayout.vue"),
children: [{
path: "",
component: () =>
import ("pages/Index.vue")
},
{
path: "/school/manager",
component: () =>
import ("pages/school/manager.vue")
},
{
path: "/school/teacher",
component: () =>
import ("pages/school/teacher.vue")
},
{
path: "/school/assistant",
component: () =>
import ("pages/school/assistant.vue")
},
{
path: "/system/menu", //菜单管理
component: () =>
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: "*",
import("pages/school/teacher.vue")
},
{
path: "/school/assistant",
component: () =>
import("pages/school/assistant.vue")
},
{
path: "/school/classmanage", //班级管理
component: () =>
import("pages/school/classmanage.vue")
},
{
path: "/school/student", //学员管理
component: () =>
import("pages/school/student.vue")
},
{
path: "/system/menu", //菜单管理
component: () =>
import("pages/system/menu.vue")
},
{
path: "/system/role", //角色管理
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;
\ No newline at end of file
export default routes;
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