...
|
...
|
@@ -16,10 +16,12 @@ module.exports = () => { |
|
|
case 'item':// 商品详情页
|
|
|
break;
|
|
|
case 'search': // 搜索
|
|
|
if (!req.path) {
|
|
|
req.url = '/product/search/index';
|
|
|
if (req.path === '/product/search/suggest') {
|
|
|
req.url = '/product/search/suggest';
|
|
|
} else if (req.path === '/api/suggest') {
|
|
|
req.url = '/product/api/suggest';
|
|
|
} else {
|
|
|
req.url = '/product/search/index';
|
|
|
}
|
|
|
break;
|
|
|
case 'list': // 商品列表
|
...
|
...
|
|