import { defineConfig } from '@umijs/max' const COLOR_PRIMARY = '#B43533' const COLOR_TEXT_PRIMARY = 'rgba(0, 0, 0, 0.88)' const COLOR_TEXT_DISABLED = 'rgba(0, 0, 0, 0.25)' export default defineConfig({ initialState: {}, access: {}, model: {}, antd: { theme: { token: { colorPrimary: COLOR_PRIMARY, colorLink: COLOR_PRIMARY, colorTextDisabled: COLOR_TEXT_PRIMARY }, components: { Button: { defaultBorderColor: COLOR_PRIMARY, defaultColor: COLOR_PRIMARY, colorTextDisabled: COLOR_TEXT_DISABLED }, Cascader: { dropdownHeight: 460 } } } }, title: '装修室内空气质量预测系统', layout: { locale: false }, tailwindcss: {}, routes: [ { name: '登录', path: '/login', component: './login', layout: false }, { name: '落地页', path: '/landing', component: './landing', layout: false }, { name: '健康装修大家谈', path: '/forum', component: './forum', layout: false }, { name: '帖子详情', path: '/forum/thread/:id', component: './forum/thread', layout: false }, { name: '科普文章', path: '/articles', component: './articles', layout: false }, { name: '文章详情', path: '/article/:id', component: './article', layout: false }, { path: '/', redirect: '/landing' }, { name: '首页', path: '/home', component: './home' }, { name: '污染源识别', path: '/source', component: './source' }, { name: '模板库', path: '/template', component: './template' }, { name: '材料库', path: '/material', component: './material' }, { name: '材料类别管理', path: '/material-category', component: './material-category', access: 'canMtrlCatMgmt' }, { name: '历史记录', path: '/history-project', component: './history-project' }, { name: '个人设置', path: '/personal-settings', component: './personal-settings', hideInMenu: true } ], mock: false, proxy: { '/api': { target: 'http://localhost:6060', changeOrigin: true }, '/socket.io': { target: 'http://localhost:6060', ws: true } }, history: { type: 'hash' }, publicPath: '/iapip-web/', favicons: ['/iapip-web/favicon.ico'], request: { dataField: '' }, mfsu: { strategy: 'normal' }, esbuildMinifyIIFE: true, npmClient: 'pnpm' })