feat: 添加货币和汇率管理功能
refactor: 重构前端路由和登录逻辑 docs: 更新业务闭环、任务和架构文档 style: 调整代码格式和文件结构 chore: 更新依赖项和配置文件
This commit is contained in:
58
dashboard/.umirc.ts
Normal file
58
dashboard/.umirc.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
import { defineConfig } from 'umi';
|
||||
|
||||
export default defineConfig({
|
||||
routes: [
|
||||
// 前台路由(无需登录)
|
||||
{
|
||||
path: '/',
|
||||
component: '@/pages/Homepage',
|
||||
layout: false,
|
||||
},
|
||||
{
|
||||
path: '/pricing',
|
||||
component: '@/pages/Pricing',
|
||||
layout: false,
|
||||
},
|
||||
{
|
||||
path: '/case-study',
|
||||
component: '@/pages/CaseStudy',
|
||||
layout: false,
|
||||
},
|
||||
{
|
||||
path: '/case-study/:id',
|
||||
component: '@/pages/CaseStudy',
|
||||
layout: false,
|
||||
},
|
||||
{
|
||||
path: '/auth',
|
||||
layout: false,
|
||||
routes: [
|
||||
{
|
||||
path: 'login',
|
||||
component: '@/pages/Auth/LoginPage',
|
||||
},
|
||||
{
|
||||
path: 'register',
|
||||
component: '@/pages/Auth/RegisterPage',
|
||||
},
|
||||
],
|
||||
},
|
||||
// 后台路由(需要登录)
|
||||
{
|
||||
path: '/dashboard',
|
||||
layout: '@/layouts/index',
|
||||
routes: [
|
||||
{
|
||||
path: '',
|
||||
component: '@/pages/OperationAgent',
|
||||
},
|
||||
{
|
||||
path: 'operation-agent',
|
||||
component: '@/pages/OperationAgent',
|
||||
},
|
||||
// 其他后台页面
|
||||
],
|
||||
},
|
||||
],
|
||||
fastRefresh: true,
|
||||
});
|
||||
Reference in New Issue
Block a user