Files
fe_service_ebtp_frontend/config/config.ts

55 lines
1.3 KiB
TypeScript
Raw Normal View History

2025-07-07 16:40:14 +08:00
import { defineConfig } from '@umijs/max';
2020-12-23 11:14:35 +08:00
import defaultSettings from './defaultSettings';
2022-03-10 14:24:13 +08:00
// import proxy from './proxy';
2020-12-23 11:14:35 +08:00
import PageRoutes from './router.config'
2025-06-12 17:19:52 +08:00
import theme from './theme';
2020-12-23 11:14:35 +08:00
const { REACT_APP_ENV } = process.env;
2025-06-12 17:19:52 +08:00
2020-12-23 11:14:35 +08:00
export default defineConfig({
hash: true,
antd: {},
2025-07-07 16:40:14 +08:00
dva: {},
plugins: [
require.resolve('@alita/plugins/dist/keepalive'),
require.resolve('@alita/plugins/dist/tabs-layout'),
],
keepalive: [/./],
tabsLayout: {
hasDropdown: false,
hasCustomTabs: true,
2020-12-23 11:14:35 +08:00
},
locale: {
default: 'zh-CN',
antd: true,
// default true, when it is true, will use `navigator.language` overwrite default
2025-07-04 10:03:42 +08:00
baseNavigator: false,
2020-12-23 11:14:35 +08:00
},
//全局加载样式
// dynamicImport: {
// loading: '@/components/PageLoading/index',
// },
targets: {
ie: 11,
},
jsMinifier: 'terser',
2025-07-04 10:03:42 +08:00
define: {
PROJECT_THEME: JSON.stringify(theme),
},
2020-12-23 11:14:35 +08:00
// umi routes: https://umijs.org/docs/routing
routes: PageRoutes,
2025-07-07 16:40:14 +08:00
title: '招投标系统',
favicons: ['/favicon.ico'],
headScripts: [
'/officecontrol/ntkobackground.min.20220624.js',
'/screen/jsencrypt.min.js',
'/screen/jsWebControl-1.0.0.min.js',
],
2020-12-23 11:14:35 +08:00
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
2025-06-12 17:19:52 +08:00
theme,
2020-12-23 11:14:35 +08:00
ignoreMomentLocale: true,
manifest: {
basePath: '/',
},
});