| | |
| | | import { defineConfig } from '@umijs/max'; |
| | | import { join } from 'path'; |
| | | import defaultSettings from './defaultSettings'; |
| | | import Env from './env'; |
| | | import proxy from './proxy'; |
| | | import routes from './routes'; |
| | | import Env from './env'; |
| | | |
| | | const { REACT_APP_ENV = 'dev' } = process.env; |
| | | |
| | |
| | | */ |
| | | define: { |
| | | BASE_URL: Env[REACT_APP_ENV as keyof typeof proxy].SERVER_URL, |
| | | MAP_KEY: '40078a8bcf75caf3ee9f2d4e25a9120e' |
| | | MAP_KEY: '40078a8bcf75caf3ee9f2d4e25a9120e', |
| | | }, |
| | | esbuildMinifyIIFE: true, |
| | | proxy: proxy[REACT_APP_ENV as keyof typeof proxy], |
| | | /** |
| | | * @name 快速热更新配置 |
| | |
| | | }); |
| | | } else { |
| | | newGroupData.itemId = null; |
| | | newGroupData.type = 1; |
| | | } |
| | | const currentFormValues = form.getFieldsValue(); |
| | | // console.log('currentFormValues', currentFormValues[copiedGroupType], newGroupData); |
| | |
| | | <Button |
| | | style={{ marginLeft: 'auto' }} |
| | | key="close" |
| | | onClick={() => setCopyModelVisible(false)} |
| | | onClick={() => { |
| | | setCopyModelVisible(false); |
| | | formRef.current?.resetFields(); |
| | | }} |
| | | > |
| | | 关闭 |
| | | </Button>, |
| | |
| | | * @doc https://umijs.org/docs/max/request#配置 |
| | | */ |
| | | export const errorConfig: RequestConfig = { |
| | | baseURL: 'http://192.168.110.111:9000', |
| | | // baseURL: 'https://dollearn.com/api', |
| | | // baseURL: 'http://192.168.110.111:9000', |
| | | baseURL: 'https://dollearn.com/api', |
| | | // 请求拦截器 |
| | | requestInterceptors: [ |
| | | (config: RequestOptions) => { |