map/.umirc.ts

85 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2023-08-30 13:55:59 +08:00
import { defineConfig } from '@umijs/max';
// import logo from './src/assets/images/logo.png'
export default defineConfig({
antd: {},
access: {},
model: {},
initialState: {},
request: {},
layout: {},
routes: [
{
path: '/',
2023-10-15 23:29:59 +08:00
redirect: '/login',
2023-08-30 13:55:59 +08:00
},
{
name: '首页',
path: '/home',
component: './Home',
icon: 'HomeOutlined',
},
{
2023-10-15 23:29:59 +08:00
name: '基础图层',
2023-08-30 13:55:59 +08:00
path: '/baseMap',
component: './BaseMap',
icon: 'BlockOutlined',
},
// {
// name: '权限演示',
// path: '/access',
// component: './Access',
// },
2023-10-16 20:52:36 +08:00
// {
// name: 'CRUD 示例',
// path: '/table',
// component: './Table',
// },
2023-08-30 13:55:59 +08:00
{
2023-10-15 23:29:59 +08:00
name: '登录',
2023-08-30 13:55:59 +08:00
path: '/login',
component: './Login',
// 不展示菜单
menuRender: false,
// 不展示在菜单栏里
hideInMenu: true,
},
{
2023-10-15 23:29:59 +08:00
name: '注册',
path: '/register',
component: './Register',
// 不展示菜单
menuRender: false,
// 不展示在菜单栏里
hideInMenu: true,
},
2023-10-16 20:52:36 +08:00
// {
// name: '关于我们',
// path: '/about',
// component: './About',
// },
2023-08-30 13:55:59 +08:00
// {
// 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': {
2023-10-16 20:52:36 +08:00
'target': 'http://101.42.40.202:8081',//
2023-08-30 13:55:59 +08:00
'changeOrigin': true,
// 'pathRewrite': { '^/api' : '' },
},
},
});