一、放在请求里
return request({
url: '/login',
headers: {
isToken: false
},
method: 'post',
data: data
})
二、放在参数里
let headers = { Authorization: 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJvcGVuX3NjcmVlbl91c2VyIjoiNjUwYTBjNDEtYjgxOS00MGE2LTg5NmEtMTY3ZTU0MTkyM2M4In0.sxu5q2-PBNUOgWmpyeK9XhtGxm9lRSa_z7yuRpeTTb2OmbWbUswdSfSWNdziWDxaZFzBUBWmKvp6AnrRBM8G6Q' }
return request.get(`/cameras/videos/${id}`, { headers: headers })