JWT
1、lay-url:
lay-headers="{Authorization: '{{layui.data('platform').access_token}}' }"
2、admin.req:
beforeSend: function (xhr) {
xhr.setRequestHeader ("Authorization", layui.data('platform').access_token);
}
3、table:
headers: {
'Authorization': layui.data('platform').access_token
}