代码拉取完成,页面将自动刷新
/*
* @Description:
* @version: 1.0
* @Author: 赵卓轩
* @Date: 2021-07-10 15:18:12
* @LastEditors: 赵卓轩
* @LastEditTime: 2021-07-22 16:43:35
*/
import { IConfig } from 'umi-types';
// ref: https://umijs.org/config/
const config: IConfig = {
dva: {},
antd: {},
mfsu: {},
// 修改icon
links: [
// href的图片你可以放在public里面,直接./图片名.png 就可以了,也可以是cdn链接
{ rel: 'icon', href: 'https://img0.baidu.com/it/u=842442191,584942941&fm=26&fmt=auto&gp=0.jpg' },
],
// 修改title
title:'租享宝—智能化共享租赁平台',
routes: [
{
path: '/',
component: '../layouts/BasicLayout/index',
routes: [
{ path: '/', component: '../pages/index' },
{
path: '/itemlist',
component: '../pages/ItemList',
},
{
path: '/search',
component: '../pages/SearchResult',
},
{
path: '/login',
component: '../pages/Login',
},
{
path: '/register',
component: '../pages/Register',
},
{
path: '/detail',
component: '../pages/ProductDetail',
},
{
path: '/payment',
component: '../pages/Payment',
},
{
path: '/createorder',
component: '../pages/CreateOrder',
},
{
path: '/orderdetail',
component: '../pages/OrderDetail',
},
{
path: '/orderdetail',
component: '../pages/OrderDetail',
},
{
path: '/storedetail',
component: '../pages/StoreDetail',
},
{
path: '/user',
routes: [
{
path: '/user/history',
component: '../pages/History',
},
{
path: '/user',
component: '../pages/User',
},
{
path: '/user/orderlist',
component: '../pages/OrderList',
},
{
path: '/user/shoppingcar',
component: '../pages/ShoppingCar',
},
{
path: '/user/address',
component: '../pages/Address',
},
{
path: '/user/favorite',
component: '../pages/Favorite',
},
{
path: '/user/refund',
component: '../pages/Refund',
},
{
path: '/user/customerservice',
component: '../pages/CustomerService',
},
{
path: '/user/serviceapply',
component: '../pages/ServiceApply',
},
{
path: '/user/servicerecord',
component: '../pages/ServiceRecord',
},
{
path: '/user/transport',
component: '../pages/Transport',
},
{
path: '/user/transportdetail',
component: '../pages/TransportDetail',
},
],
},
],
},
],
// ref: https://umijs.org/plugin/umi-plugin-react.htm
proxy: {
'/api2': {
target: 'http://47.110.156.20:8085/',
changeOrigin: true,
pathRewrite: { '^/api2': '' },
},
'/api3': {
target: 'http://47.110.156.20:8083/',
changeOrigin: true,
pathRewrite: { '^/api3': '' },
},
},
};
export default config;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。