import { defineConfig } from '@umijs/max'; export default defineConfig({ esbuildMinifyIIFE: true, 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': '' }, }, '/previewApi/': { target: 'http://39.108.227.113:8092/', changeOrigin: true, pathRewrite: { '^/previewApi': '' }, }, }, 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: 'canReadAdminAndFinance', }, { name: '发票管理', path: '/invoiceManage', component: './Invoice', icon: 'BookOutlined', access: 'canReadAdminAndFinance', }, { name: '预存管理', path: '/prepaidManage', component: './Prepaid', icon: 'AccountBookOutlined', access: 'canReadAdminAndFinanceAndSales', }, { name: '打印', path: '/print', component: './OrderPrint', layout: false, }, ], npmClient: 'pnpm', tailwindcss: {}, });