[Frontend][全域功能] Datatable Ajax 改 cookie JWT

This commit is contained in:
dev01 2022-12-12 11:39:25 +08:00
parent 4a82696ad1
commit d5b35002d0

View File

@ -160,7 +160,8 @@ function fnInitJqDataTablesAjax(apiUrl, tag, sendData = null, columns, columns_d
}
}
let table = null;
let token = localStorage.getItem("JWT-Authorization");
let cookies = new YourTeam.Utility.Cookie();
let token = cookies.get("JWT-Authorization");
let ajaxMethod = "GET";
let ajaxSendData = null;
if (typeof apiUrl == "object") {