Files
fe_portal_manage_frontend/config/router.config.ts
2025-06-30 18:00:56 +08:00

124 lines
2.7 KiB
TypeScript

export default [
{
path: '/login',
component: '@/pages/login/login',
},
{
path: '/register',
routes: [
{
path: '/register/supplier',
component: '@/pages/register/supplier',
},
{
path: '/register/expert',
component: '@/pages/register/expert',
}
]
},
{
path: '/',
component: '@/layouts/Index',
routes: [
{
path: '/',
meta: {
title: '首页',
},
redirect: '/index',
},
{
name: 'index',
path: '/index',
meta: {
title: '首页',
},
component: '@/pages/index',
},
{
name: 'userManage',
path: '/userManage',
meta: {
title: '用户管理',
},
component: '@/pages/userManage/userManage',
},
{
name: 'downloadManage',
path: '/downloadManage',
meta: {
title: '下载管理',
},
component: '@/pages/downloadManage/downloadManage',
},
{
name: 'noticeManage',
path: '/noticeManage',
meta: {
title: '公告管理',
},
component: '@/pages/noticeManage/noticeManage',
},
{
name: 'policyManage',
path: '/policyManage',
component: '@/pages/policyManage/policyManage',
},
{
name: 'aboutManage',
path: '/aboutManage',
meta: {
title: '关于我们',
},
component: '@/pages/aboutManage/aboutManage',
},
{
name: 'helpManage',
path: '/helpManage',
meta: {
title: '帮助中心',
},
component: '@/pages/helpManage/helpManage',
},
{
name: 'readQuestionManage',
path: '/readQuestionManage',
meta: {
title: '已读问题',
},
component: '@/pages/userQuestionManage/readQuestionManage',
},
{
name: 'unreadQuestionManage',
path: '/unreadQuestionManage',
meta: {
title: '未读问题',
},
component: '@/pages/userQuestionManage/unreadQuestionManage',
},
{
name: 'friendLinkCategory',
path: '/friendLinkCategory',
meta: {
title: '友情链接分类',
},
component: '@/pages/friendLinkManage/friendLinkCategory',
},
{
name: 'friendLinkManage',
path: '/friendLinkManage',
meta: {
title: '友情链接管理',
},
component: '@/pages/friendLinkManage/friendLinkManage',
},
]
},
{
exact: true,
path: '/404',
component: './404',
}
];