...
|
...
|
@@ -102,7 +102,7 @@ module.exports = [ |
|
|
// 新品到着
|
|
|
{
|
|
|
type: TYPE.rewrite,
|
|
|
origin: /\/(.*)-new/,
|
|
|
origin: /^\/(boys|girls|kids|lifestyle)-new/,
|
|
|
target: (req, match, channel) => {
|
|
|
return `/product/list/${channel}-new`;
|
|
|
}
|
...
|
...
|
@@ -179,7 +179,7 @@ module.exports = [ |
|
|
},
|
|
|
{
|
|
|
type: TYPE.rewrite,
|
|
|
origin: /\/shop([\d]+)-about/,
|
|
|
origin: /^\/shop([\d]+)-about/,
|
|
|
target: (req, match, id) => {
|
|
|
req.query.domain = req.subdomains[0];
|
|
|
req.query.shopId = id;
|
...
|
...
|
|