// var headers = new Headers();
// ('Authorization', ('token'));
fetch('/distributor/sidebar',{
headers:{
'Authorization':('token')
}
}).then(response => {
return (); // 先将结果转换为 JSON 对象
})
.then(data => {
(data);
({
name:.dealer_name,
phone:
});
}).catch(function(error){
(error);
});
转载于:/winyh/p/