up version add erp2goods
Showing
2 changed files
with
15 additions
and
1 deletions
@@ -68,5 +68,19 @@ module.exports = [ | @@ -68,5 +68,19 @@ module.exports = [ | ||
68 | 'www' | 68 | 'www' |
69 | ); | 69 | ); |
70 | } | 70 | } |
71 | + }, | ||
72 | + // erp2good | ||
73 | + { | ||
74 | + type: TYPE.rewrite, | ||
75 | + origin: (req) => { | ||
76 | + console.log(req.path); | ||
77 | + return req.path === '/erp2goods' | ||
78 | + }, | ||
79 | + target: '/common/erp2goods' | ||
80 | + }, | ||
81 | + { | ||
82 | + type: TYPE.redirect, | ||
83 | + origin: '/index.html', | ||
84 | + target: helpers.urlFormat('/') | ||
71 | } | 85 | } |
72 | ]; | 86 | ]; |
-
Please register or login to post a comment