fix: 表单提交csrftoken问题

This commit is contained in:
feng626
2022-08-19 14:38:59 +08:00
committed by Jiangjie.Bai
parent 1432fe1609
commit 37b150bc04
2 changed files with 5 additions and 5 deletions

View File

@@ -79,6 +79,9 @@ function doRequestAuth() {
requestApi({
url: url,
method: "GET",
headers: {
"X-JMS-LOGIN-TYPE": "W"
},
success: function (data) {
if (!data.error && data.msg === 'ok') {
window.onbeforeunload = function(){};
@@ -98,9 +101,6 @@ function doRequestAuth() {
},
error: function (text, data) {
},
beforeSend: function(request) {
request.setRequestHeader("X-JMS-LOGIN-TYPE", "W");
},
flash_message: false, // 是否显示flash消息
})
}