var valToken = localStorage.getItem('token')
this.$http.get('http://192.168.1.222/api/address', {},
{headers: {
'Accept': 'application/json','Authorization':'Bearer '+ valToken
}
}).then(function (response) {
console.log(response)
}, function (response) {
console.log('请求失败response', response)
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…