| | |
| | | * @doc https://umijs.org/docs/max/i18n |
| | | */ |
| | | locale: { |
| | | // default zh-CN |
| | | default: 'zh-CN', |
| | | // default zh-CN / en-US |
| | | default: 'en-US', |
| | | antd: true, |
| | | // default true, when it is true, will use `navigator.language` overwrite default |
| | | baseNavigator: true, |
| | | baseNavigator: false, |
| | | }, |
| | | /** |
| | | * @name antd 插件 |
| | |
| | | * @doc https://pro.ant.design/zh-cn/docs/openapi/ |
| | | */ |
| | | openAPI: [ |
| | | { |
| | | requestLibPath: "import { request } from '@umijs/max'", |
| | | // 或者使用在线的版本 |
| | | // schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json" |
| | | schemaPath: join(__dirname, 'oneapi.json'), |
| | | mock: false, |
| | | }, |
| | | { |
| | | requestLibPath: "import { request } from '@umijs/max'", |
| | | schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json', |
| | | projectName: 'swagger', |
| | | }, |
| | | // { |
| | | // requestLibPath: "import { request } from '@umijs/max'", |
| | | // // 或者使用在线的版本 |
| | | // // schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json" |
| | | // schemaPath: join(__dirname, 'oneapi.json'), |
| | | // mock: false, |
| | | // }, |
| | | // { |
| | | // requestLibPath: "import { request } from '@umijs/max'", |
| | | // schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json', |
| | | // projectName: 'swagger', |
| | | // }, |
| | | ], |
| | | mfsu: { |
| | | strategy: 'normal', |
| | | }, |
| | | esbuildMinifyIIFE: true, |
| | | requestRecord: {}, |
| | | publicPath: './' |
| | | }); |