66 lines
1023 B
TypeScript
66 lines
1023 B
TypeScript
import { defineConfig } from '@umijs/max';
|
|
|
|
const publicRoutes = [
|
|
{
|
|
name: '登录',
|
|
path: '/login',
|
|
component: '@/pages/Login.tsx',
|
|
layout: false,
|
|
},
|
|
{
|
|
name: '登录',
|
|
path: '/',
|
|
redirect: '/login',
|
|
layout: false,
|
|
},
|
|
{ path: '/*', component: '@/pages/404.tsx' },
|
|
];
|
|
|
|
export default defineConfig({
|
|
locale: {
|
|
// 默认使用 src/locales/zh-CN.ts 作为多语言文件
|
|
default: 'zh-CN',
|
|
baseSeparator: '-',
|
|
},
|
|
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: [...publicRoutes],
|
|
npmClient: 'pnpm',
|
|
dva: {},
|
|
valtio: {},
|
|
tailwindcss: {},
|
|
esbuildMinifyIIFE: true,
|
|
mfsu: {
|
|
shared: {
|
|
react: {
|
|
singleton: true,
|
|
},
|
|
},
|
|
},
|
|
hash: true,
|
|
});
|