Showing
1 changed file
with
2 additions
and
2 deletions
@@ -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 |
-
Please register or login to post a comment