import { defineConfig } from '@umijs/max'; const managerRoutes = [{ path: '/*', component: '@/pages/404.tsx' }]; export default defineConfig({ locale: { // 默认使用 src/locales/zh-CN.ts 作为多语言文件 default: 'zh-CN', baseSeparator: '-', }, scripts:[ "https://map.qq.com/api/gljs?v=1.exp&key=JYTBZ-6GD3V-ZTZPJ-U35RX-EZMGQ-45BTF" ], antd: { configProvider: {}, styleProvider: { hashPriority: 'high', legacyTransformer: true, }, theme: { token: { // colorPrimary: '#FEBB40', // colorInfo: '#FEBB40', }, }, appConfig: {}, }, access: { strictMode: false, }, model: {}, initialState: {}, request: { dataField: 'data', }, layout: { title: '寻鸿科技', }, reactQuery: {}, routes: [...managerRoutes], npmClient: 'pnpm', dva: {}, valtio: {}, tailwindcss: {}, esbuildMinifyIIFE: true, mfsu: { shared: { react: { singleton: true, }, }, }, hash: true, });