layui table带token访问后台需要验证的接口

1、JWT
table.render({
elem: '#company-checkeqip-table'
, url: layui.setter.serviceUrl+'/EnpEquip'
,headers: {
'Authorization': 'Bearer '+layui.data('platform').access_token
}
/* ,where: {
access_token: layui.data('platform').access_token
} */
, cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 新增
, cols: [[
{ type: 'numbers' }
]]
})

猜你喜欢

转载自www.cnblogs.com/zhangfeitaimengle/p/9025037.html