192 lines
3.5 KiB
TypeScript
192 lines
3.5 KiB
TypeScript
import type { RouteRecordRaw } from "vue-router";
|
|
import TableLayout from "lib/layout/TableLayout.vue";
|
|
import MainLayout from "lib/layout/MainLayout.vue";
|
|
const routes: Array<RouteRecordRaw> = [
|
|
{
|
|
meta: {
|
|
hidden: true,
|
|
},
|
|
path: "/login",
|
|
component: () => import("src/views/LoginPage.vue"),
|
|
children: [],
|
|
},
|
|
{
|
|
path: "/",
|
|
redirect: "/home",
|
|
component: MainLayout,
|
|
children: [
|
|
{
|
|
path: "home",
|
|
component: () => import("src/views/HomeView.vue"),
|
|
meta: {
|
|
title: "首页",
|
|
icon: "首页",
|
|
myico: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/admin",
|
|
component: MainLayout,
|
|
meta: {
|
|
title: "账号管理",
|
|
icon: "用户列表",
|
|
myico: true,
|
|
},
|
|
children: [
|
|
{
|
|
path: "list",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "账号列表",
|
|
icon: "用户列表",
|
|
myico: true,
|
|
},
|
|
},
|
|
{
|
|
path: "role",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "角色管理",
|
|
icon: "用户列表",
|
|
myico: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/history",
|
|
component: MainLayout,
|
|
meta: {
|
|
title: "银泰历程",
|
|
icon: "TrendCharts",
|
|
},
|
|
children: [
|
|
{
|
|
path: "list",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "银泰历程",
|
|
icon: "TrendCharts",
|
|
},
|
|
},
|
|
{
|
|
path: "typesManage",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "类型管理",
|
|
icon: "Setting",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/news",
|
|
component: MainLayout,
|
|
meta: {
|
|
title: "新闻管理",
|
|
icon: "VideoCamera",
|
|
},
|
|
children: [
|
|
{
|
|
path: "list",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "新闻列表",
|
|
icon: "VideoCamera",
|
|
},
|
|
},
|
|
{
|
|
path: "typesManage",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "类型管理",
|
|
icon: "Setting",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/jobs",
|
|
component: MainLayout,
|
|
meta: {
|
|
title: "招聘管理",
|
|
icon: "House",
|
|
},
|
|
children: [
|
|
{
|
|
path: "list",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "招聘列表",
|
|
icon: "Memo",
|
|
},
|
|
},
|
|
{
|
|
path: "typesManage",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "类型管理",
|
|
icon: "Setting",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
|
|
{
|
|
path: "/document",
|
|
component: MainLayout,
|
|
meta: {
|
|
title: "文档管理",
|
|
icon: "Files",
|
|
},
|
|
children: [
|
|
{
|
|
path: "list",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "文档列表",
|
|
icon: "Files",
|
|
},
|
|
},
|
|
{
|
|
path: "typesManage",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "类型管理",
|
|
icon: "Setting",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/config",
|
|
component: MainLayout,
|
|
meta: {
|
|
title: "配置管理",
|
|
icon: "Setting",
|
|
},
|
|
children: [
|
|
{
|
|
path: "list",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "页面配置",
|
|
icon: "Setting",
|
|
},
|
|
},
|
|
{
|
|
path: "source",
|
|
component: TableLayout,
|
|
meta: {
|
|
title: "资源管理",
|
|
icon: "Refresh",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|