[Bugfix] 重命名applications导致api请求content_type不对

This commit is contained in:
ibuler
2017-01-09 23:12:32 +08:00
parent be3f94d86c
commit 8658675f67
3 changed files with 3 additions and 3 deletions

View File

@@ -195,7 +195,7 @@ function APIUpdateAttr(props) {
url: props.url,
type: props.method || "PATCH",
data: props.body,
contentType: props.content_type || "applications/json; charset=utf-8",
contentType: props.content_type || "application/json; charset=utf-8",
dataType: props.data_type || "json"
}).done(function(data, textStatue, jqXHR) {
toastr.success(success_message);