import { defineConfig } from '@umijs/max'; // import logo from './src/assets/images/logo.png' export default defineConfig({ antd: {}, access: {}, model: {}, initialState: {}, request: {}, layout: {}, routes: [ { path: '/', redirect: '/login', }, { name: '首页', path: '/home', component: './Home', icon: 'HomeOutlined', }, { name: '基础图层', path: '/baseMap', component: './BaseMap', icon: 'BlockOutlined', }, // { // name: '权限演示', // path: '/access', // component: './Access', // }, // { // name: 'CRUD 示例', // path: '/table', // component: './Table', // }, { name: '登录', path: '/login', component: './Login', // 不展示菜单 menuRender: false, // 不展示在菜单栏里 hideInMenu: true, }, { name: '注册', path: '/register', component: './Register', // 不展示菜单 menuRender: false, // 不展示在菜单栏里 hideInMenu: true, }, // { // name: '关于我们', // path: '/about', // component: './About', // }, // { // name: ' 3D', // path: '/three', // component: './three', // // 不展示菜单 // menuRender: false, // }, ], npmClient: 'yarn', headScripts: [ `https://webapi.amap.com/maps?v=2.0&key=0aafe5ec0678bcfc99f005cc1c5f2faa` ], links: [ { rel: 'icon', href: './src/assets/images/logo.png'}, ], proxy: { '/api': { 'target': 'http://101.42.40.202:8081',// 'changeOrigin': true, // 'pathRewrite': { '^/api' : '' }, }, }, });