115 lines
2.3 KiB
TypeScript
115 lines
2.3 KiB
TypeScript
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: '/access',
|
|
component: './Access',
|
|
},
|
|
{
|
|
name: ' CRUD 示例',
|
|
path: '/table',
|
|
component: './Table',
|
|
},
|
|
{
|
|
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,
|
|
},
|
|
]
|
|
},
|
|
],
|
|
npmClient: 'yarn',
|
|
});
|