map/.umirc.ts
2023-08-30 13:55:59 +08:00

76 lines
1.5 KiB
TypeScript

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: '/home',
},
{
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: '/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',//8.142.119.212:8083
'changeOrigin': true,
// 'pathRewrite': { '^/api' : '' },
},
},
});