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
Email Patches
Plain Diff
Browse Files
Authored by
yyq
7 years ago
Commit
8a74a7979f3e9484eedaa18e2e1bc2529f97dcf8
1 parent
ba0883ba
del unuse line
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 @
8a74a79
...
...
@@ -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