Commit c20efc4fcdad50001f22da9ee2c4e4d94e994669
1 parent
7873b50515
Exists in
master
debug
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
api-server/router-products.js
... | ... | @@ -20,7 +20,8 @@ function pageIndex(req, res, next) { |
20 | 20 | } |
21 | 21 | |
22 | 22 | function pageAdd(req, res, next) { |
23 | - if (!req.params.product || req.params.product !== 'string' || !req.params.product.trim()) { | |
23 | + //if (!req.params.product || req.params.product !== 'string' || !req.params.product.trim()) { | |
24 | + if (!req.params.product) { | |
24 | 25 | res.json({ |
25 | 26 | method: '/products/add', |
26 | 27 | error: true, |