import { defineConfig } from '@umijs/max'; export default defineConfig({ antd: { style: 'less', }, access: {}, model: {}, initialState: {}, request: {}, layout: { title: '订单管理系统', }, proxy: { '/api/': { target: 'http://localhost:8085/', // target: 'http://192.168.1.6:8085/', // target: 'http://39.108.227.113:8085/', changeOrigin: true, pathRewrite: { '^/api': '' }, }, }, routes: [ { path: '/', redirect: '/order', }, { name: '登录', path: '/login', component: './Login', layout: false, }, { name: '订单管理', path: '/order', component: './Order', icon: 'ProfileOutlined', }, { name: '订单报表', path: '/orderReport', component: './OrderReport', icon: 'LineChartOutlined', access: 'canReadAdmin', }, { name: '打印', path: '/print', component: './OrderPrint', layout: false, }, ], npmClient: 'pnpm', tailwindcss: {}, });