import { defineConfig } from '@umijs/max'; export default defineConfig({ antd: {}, access: {}, model: {}, initialState: {}, request: {}, title: '五味子云存储', favicons: ['logo.png'], layout: { title: '五味子云存储', }, base: '/', routes: [ { path: '/', redirect: '/login', }, { path: '/login', layout: false, component: './Login', }, { name: '首页', path: '/home', component: './Home', }, { name: ' 系统监控', path: '/redis', component: './Redis', }, { name: ' 用户配置', path: '/user', // redirect: "/users", routes: [ { name: ' 用户表', path: '/user/users', component: './Users', layout: true, }, { name: ' 角色表', path: '/user/role', component: './Role', layout: true, }, { name: ' 权限表', path: '/user/permission', component: './Permission', layout: true, }, { name: ' 社会用户表', path: '/user/social', component: './Social', layout: true, }, ], }, { name: ' 存储配置', path: '/storage', routes: [ { name: ' 阿里云配置表', path: '/storage/ali', component: './Ali', layout: true, }, { name: ' minio配置表', path: '/storage/minio', component: './Minio', layout: true, }, { name: ' 七牛云配置表', path: '/storage/qiniu', component: './Qiniu', layout: true, }, { name: ' 腾讯云配置表', path: '/storage/tencent', component: './Tencent', layout: true, }, { name: ' 又拍云配置表', path: '/storage/up', component: './Up', layout: true, }, { name: ' sftp配置表', path: '/storage/sftp', component: './Sftp', layout: true, }, ], }, { name: '分享配置', path: '/share', routes: [ { name: '分享圈', path: '/share/share-circle', component: './Share/Share-circle', layout: true, }, { name: '评论回复表', path: '/share/remark-answer', component: './Share/Remark-answer', layout: true, }, { name: '分享详情表', path: '/share/detail', component: './Share/Detail', layout: true, }, { name: '详情/标签映射表', path: '/share/detail-tag', component: './Share/Detail-tag', layout: true, }, { name: '消息表', path: '/share/message', component: './Share/Message', layout: true, }, { name: '分享详情标签表', path: '/share/tags', component: './Share/Tags', layout: true, }, { name: '分享链接', path: '/share/url', component: './Share/Url', layout: true, }, ], }, { name: '系统配置', path: '/system', routes: [ { name: '系统设置表', path: '/system/config', component: './System/Config', layout: true, }, { name: '系统日志表', path: '/system/log', component: './System/Log', layout: true, }, { name: '第三方登录配置表', path: '/system/oauth', component: './System/Oauth', layout: true, }, ], }, ], npmClient: 'yarn', });