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
陈峰
2018-05-30 18:59:20 +0800
Commit
a23f730a4bd9534426b7ef52ff474dad491188a0
2 parents
ba0883ba
8a74a797
Merge branch 'hotfix/searchHistory' into 'master'
del unuse line See merge request
!298
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletions
apps/product/controllers/search.js
apps/product/controllers/search.js
View file @
a23f730
...
...
@@ -157,7 +157,6 @@ const searchHistory = (req, res) => {
history
=
_
.
filter
(
history
.
split
(
','
),
old
=>
old
&&
old
!==
q
);
if
(
q
)
{
sear
;
history
.
unshift
(
q
);
res
.
cookie
(
'_History'
,
_
.
take
(
history
,
9
).
join
(
','
),
{
path
:
'/'
,
...
...
Please
register
or
login
to post a comment