fix: 修复登录符合拒绝时 登录日志类型异常问题 (#8758)

Co-authored-by: feng626 <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-08-17 14:45:02 +08:00
committed by GitHub
parent d405bae205
commit 7d0a19635a
2 changed files with 6 additions and 1 deletions

View File

@@ -270,11 +270,13 @@ function requestApi(props) {
if (typeof(dataBody) === "object") {
dataBody = JSON.stringify(dataBody)
}
var beforeSend = props.beforeSend || function (request) {}
$.ajax({
url: props.url,
type: props.method || "PATCH",
data: dataBody,
beforeSend: beforeSend,
contentType: props.content_type || "application/json; charset=utf-8",
dataType: props.data_type || "json"
}).done(function (data, textStatue, jqXHR) {