Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
刘传洋
9 years ago
Commit
42fad7c678f7f3ea511f2dc7f74d16be5bf2cfca
2 parents
ead21ba3
48570a0d
Merge branch 'release/newSearch' of
http://git.yoho.cn/fe/yohobuy-node
into release/newSearch
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
doraemon/middleware/sub-domain.js
doraemon/middleware/sub-domain.js
View file @
42fad7c
...
...
@@ -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'
;
...
...
Please
register
or
login
to post a comment