前端:修改 H5 的路由

pull/1/head
YunaiV 2019-04-08 23:47:26 +08:00
parent b42aeac188
commit bb16a3e672
1 changed files with 12 additions and 4 deletions

View File

@ -23,24 +23,32 @@ const serviceRouter = function(requestUrl) {
prefix: '/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 = {
'/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': {
prefix: '/user-api',
target: 'http://127.0.0.1:18082/user-api',
target: 'http://api.shop.iocoder.cn:18099/user-api',
},
'/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': {
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',
},
};