Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
2018-01-08 18:22:53 +0800
Commit
613340707947bc690aafee1b0e07db6c5641750c
1 parent
6717588e
life-style-sale
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
doraemon/middleware/url-rewrite.js
doraemon/middleware/url-rewrite.js
View file @
6133407
...
...
@@ -73,6 +73,11 @@ module.exports = () => {
req
.
url
=
`
/
product$
{
req
.
url
}
`
;
}
if
(
/^
\/
sale/
.
test
(
req
.
url
))
{
// 匹配 life-style-sale
req
.
url
=
`
/
product$
{
req
.
url
}
`
;
}
next
();
};
};
...
...
Please
register
or
login
to post a comment