You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
let csrf_token_key="baseService_csrf_token"
|
|
//保存csrf_token的返回值
|
|
function setCsrfLocalStorage(data){
|
|
localStorage.setItem(csrf_token_key, data.csrf_token);
|
|
}
|
|
//获取csrf_token的存储值
|
|
function getCsrfLocalStorage(){
|
|
let item = localStorage.getItem(csrf_token_key);
|
|
return item;
|
|
} |