[Frontend][全域功能] Datatable Ajax 改 cookie JWT
This commit is contained in:
parent
4a82696ad1
commit
d5b35002d0
@ -160,7 +160,8 @@ function fnInitJqDataTablesAjax(apiUrl, tag, sendData = null, columns, columns_d
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
let table = null;
|
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 ajaxMethod = "GET";
|
||||||
let ajaxSendData = null;
|
let ajaxSendData = null;
|
||||||
if (typeof apiUrl == "object") {
|
if (typeof apiUrl == "object") {
|
||||||
|
Loading…
Reference in New Issue
Block a user