This commit is contained in:
zoujiandong 2025-07-22 15:57:13 +08:00
parent 1d598d149b
commit e40f72db16
3 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ const api = {
return request('/exchange/collect/'+id, {}, 'delete',false);
},
addExchangeComment(id,data){
return request('/exchange/comment/'+id, data, 'post',true);
return request('/exchange/comment/'+id, data, 'post',true,'application/json');
},
delExchangeComment(id){
return request('/exchange/comment/'+id, {}, 'delete',false);

File diff suppressed because one or more lines are too long

View File

@ -113,7 +113,7 @@ const api = {
return utils_request.request("/exchange/collect/" + id, {}, "delete", false);
},
addExchangeComment(id, data) {
return utils_request.request("/exchange/comment/" + id, data, "post", true);
return utils_request.request("/exchange/comment/" + id, data, "post", true, "application/json");
},
delExchangeComment(id) {
return utils_request.request("/exchange/comment/" + id, {}, "delete", false);