Authored by 周少峰

search sub domain

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