前端:修改 H5 的路由

This commit is contained in:
YunaiV 2019-04-08 23:47:26 +08:00
parent b42aeac188
commit bb16a3e672

View File

@ -23,24 +23,32 @@ const serviceRouter = function(requestUrl) {
prefix: '/promotion-api', prefix: '/promotion-api',
target: 'http://127.0.0.1:18085//promotion-api', target: 'http://127.0.0.1:18085//promotion-api',
}, },
'/pay-api': {
prefix: '/pay-api',
target: 'http://127.0.0.1:18084//promotion-api',
},
}; };
const configProd = { const configProd = {
'/order-api': { '/order-api': {
prefix: '/order-api', prefix: '/order-api',
target: 'http://127.0.0.1:18084/order-api', target: 'http://api.shop.iocoder.cn:18099/order-api',
}, },
'/user-api': { '/user-api': {
prefix: '/user-api', prefix: '/user-api',
target: 'http://127.0.0.1:18082/user-api', target: 'http://api.shop.iocoder.cn:18099/user-api',
}, },
'/product-api': { '/product-api': {
prefix: '/product-api', prefix: '/product-api',
target: 'http://127.0.0.1:18081/product-api', target: 'http://api.shop.iocoder.cn:18099/product-api',
}, },
'/promotion-api': { '/promotion-api': {
prefix: '/promotion-api', prefix: '/promotion-api',
target: 'http://127.0.0.1:18085//promotion-api', target: 'http://api.shop.iocoder.cn:18099/promotion-api',
},
'/pay-api': {
prefix: '/pay-api',
target: 'http://api.shop.iocoder.cn:18099/promotion-api',
}, },
}; };