import { defineConfig } from '@umijs/max'; export default defineConfig({ antd: {}, access: {}, model: {}, initialState: {}, request: {}, layout: false, publicPath: process.env.NODE_ENV == 'development' ? '/' : '/gt-dig/', metas: [ // 配置html禁止缓存 { 'http-equiv': 'pragma', content: 'no-cache' }, { 'http-equiv': 'cache-control', content: 'no-cache' }, { 'http-equiv': 'expires', content: '0' }, { 'http-equiv': 'X-UA-Compatible', content: 'IE=EmulateIE9' }, ], proxy: { '/api': { // target: 'http://47.96.12.136:8888/', target: 'http://47.96.12.136:8788/', // target: 'https://work.greentech.com.cn/', changeOrigin: true, }, }, routes: [ { path: '/', redirect: '/home', }, { name: '首页', path: '/home', component: './Home', }, { name: '工况管理', path: '/smart/work/:projectId', component: './Smart', }, // { // name: '权限演示', // path: '/access', // component: './Access', // }, // { // name: ' CRUD 示例', // path: '/table', // component: './Table', // }, ], npmClient: 'yarn', });