Authored by 郭成尧

'搜索筛选跨域控制'

@@ -153,7 +153,7 @@ let fuzzyDatas = (req, res, next) => { @@ -153,7 +153,7 @@ let fuzzyDatas = (req, res, next) => {
153 * ajax 商品数据请求 153 * ajax 商品数据请求
154 */ 154 */
155 const search = (req, res, next) => { 155 const search = (req, res, next) => {
156 - res.header("Access-Control-Allow-Origin", "*"); 156 + res.header('Access-Control-Allow-Origin', '*');
157 157
158 let params = Object.assign({}, req.query); 158 let params = Object.assign({}, req.query);
159 159
@@ -169,7 +169,7 @@ const search = (req, res, next) => { @@ -169,7 +169,7 @@ const search = (req, res, next) => {
169 * 筛选 169 * 筛选
170 */ 170 */
171 let filter = (req, res, next) => { 171 let filter = (req, res, next) => {
172 - res.header("Access-Control-Allow-Origin", "*"); 172 + res.header('Access-Control-Allow-Origin', '*');
173 173
174 let params = Object.assign({}, req.query); 174 let params = Object.assign({}, req.query);
175 175