ERPTurbo_Admin/packages/app-operation/.umirc.ts
2025-11-03 10:21:56 +08:00

55 lines
945 B
TypeScript

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,
});