feat:react框架初始化
This commit is contained in:
72
.umirc.ts
Normal file
72
.umirc.ts
Normal file
@@ -0,0 +1,72 @@
|
||||
import { defineConfig } from '@umijs/max';
|
||||
|
||||
export default defineConfig({
|
||||
antd: {},
|
||||
access: {},
|
||||
model: {},
|
||||
initialState: {},
|
||||
request: {
|
||||
dataField: 'data',
|
||||
},
|
||||
layout: {
|
||||
title: 'AutoBee 后台管理系统',
|
||||
logo: '/logo.svg',
|
||||
locale: false,
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:9000',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/api': '/api' },
|
||||
},
|
||||
},
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/login',
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
component: './Login',
|
||||
layout: false,
|
||||
},
|
||||
{
|
||||
path: '/dashboard',
|
||||
name: '仪表盘',
|
||||
icon: 'DashboardOutlined',
|
||||
component: './Dashboard',
|
||||
},
|
||||
{
|
||||
path: '/user-management',
|
||||
name: '用户管理',
|
||||
icon: 'UserOutlined',
|
||||
component: './UserManagement',
|
||||
},
|
||||
{
|
||||
path: '/image-management',
|
||||
name: '镜像管理',
|
||||
icon: 'FileImageOutlined',
|
||||
component: './ImageManagement',
|
||||
},
|
||||
{
|
||||
path: '/script-review',
|
||||
name: '剧本审核',
|
||||
icon: 'AuditOutlined',
|
||||
component: './ScriptReview',
|
||||
},
|
||||
{
|
||||
path: '/ability-query',
|
||||
name: '能力查询',
|
||||
icon: 'SearchOutlined',
|
||||
component: './AbilityQuery',
|
||||
},
|
||||
{
|
||||
path: '/script-backend',
|
||||
name: '剧本后台',
|
||||
icon: 'CodeOutlined',
|
||||
component: './ScriptBackend',
|
||||
},
|
||||
],
|
||||
npmClient: 'npm',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user