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

Co-authored-by: feng626 <1304903146@qq.com>
pull/8760/head
fit2bot 2 years ago committed by GitHub
parent d405bae205
commit 7d0a19635a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -98,7 +98,10 @@ function doRequestAuth() {
}, },
error: function (text, data) { error: function (text, data) {
}, },
flash_message: false beforeSend: function(request) {
request.setRequestHeader("X-JMS-LOGIN-TYPE", "W");
},
flash_message: false, // 是否显示flash消息
}) })
} }
function initClipboard() { function initClipboard() {

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

Loading…
Cancel
Save