Compare View
Commits (2)
Changes
Showing 3 changed files 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, |
package-lock.json