Initial commit

This commit is contained in:
linxd
2025-06-16 09:25:19 +08:00
commit d33c9cc7d3
391 changed files with 26497 additions and 0 deletions

38
config/config.ts Normal file
View File

@ -0,0 +1,38 @@
import { defineConfig } from 'umi';
import defaultSettings from './defaultSettings';
// import proxy from './proxy';
import PageRoutes from './router.config'
const { REACT_APP_ENV } = process.env;
export default defineConfig({
hash: true,
antd: {},
dva: {
hmr: true,
},
locale: {
default: 'zh-CN',
antd: true,
// default true, when it is true, will use `navigator.language` overwrite default
baseNavigator: true,
},
//全局加载样式
// dynamicImport: {
// loading: '@/components/PageLoading/index',
// },
targets: {
ie: 11,
},
// umi routes: https://umijs.org/docs/routing
routes: PageRoutes,
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
theme: {
// ...darkTheme,
'primary-color': defaultSettings.primaryColor,
},
// @ts-ignore
title: false,
ignoreMomentLocale: true,
manifest: {
basePath: '/',
},
});