前端 + 后端:商品搜索
This commit is contained in:
@@ -28,6 +28,10 @@ const serviceRouter = function(requestUrl) {
|
||||
prefix: '/pay-api',
|
||||
target: 'http://127.0.0.1:18084/pay-api',
|
||||
},
|
||||
'/search-api': {
|
||||
prefix: '/search-api',
|
||||
target: 'http://127.0.0.1:18086/search-api',
|
||||
},
|
||||
};
|
||||
|
||||
const configProd = {
|
||||
@@ -51,6 +55,10 @@ const serviceRouter = function(requestUrl) {
|
||||
prefix: '/pay-api',
|
||||
target: 'http://api.shop.iocoder.cn:18099/pay-api',
|
||||
},
|
||||
'/search-api': {
|
||||
prefix: '/search-api',
|
||||
target: 'http://api.shop.iocoder.cn:18099/search-api',
|
||||
},
|
||||
};
|
||||
|
||||
if (process.env.NODE_ENV == 'development') {
|
||||
|
||||
@@ -153,13 +153,6 @@ const routes = [
|
||||
title: '进度详情'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/product/:id',
|
||||
component: () => import('../page/product/detail'),
|
||||
meta: {
|
||||
title: '商品详情'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/product/search',
|
||||
component: () => import('../page/product/search'),
|
||||
@@ -167,6 +160,13 @@ const routes = [
|
||||
title: '商品搜索'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/product/:id',
|
||||
component: () => import('../page/product/detail'),
|
||||
meta: {
|
||||
title: '商品详情'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/products/list',
|
||||
component: () => import('../page/product/list'),
|
||||
|
||||
Reference in New Issue
Block a user