aigc/config/routes.ts
2025-03-28 19:47:45 +08:00

25 lines
987 B
TypeScript

export default [
{path: '/user',layout: false,routes: [
{ name: '登录', path: '/user/login', component: './User/Login' },
{ name: '注册', path: '/user/register', component: './User/Register' }
]},
{path:"/", redirect: "/add_chart"},
{ path: '/add_chart', name :"智能分析", icon: "barChart", component: './AddChart' },
{ path: '/add_async', name :"智能分析(异步)", icon: "DotChartOutlined", component: './AddChartAsync' },
{ path: '/my_chart', name :"我的图表", icon: "PictureOutlined", component: './MyChart' },
{ path: '/forum', name :"交流论坛", icon: "CrownOutlined", component: './Forum' },
{
path: '/admin',
name: '管理页',
icon: 'crown',
access: 'canAdmin',
routes: [
{ path: '/admin', redirect: '/admin/sub-page' },
{ path: '/admin/sub-page', name: '二级管理页', component: './Admin' },
],
},
{ path: '/', redirect: '/welcome' },
{ path: '*', layout: false, component: './404' },
];