|
|
|
|
105
|
Axios({ ...aParams }).then(res => {
|
105
|
Axios({ ...aParams }).then(res => {
|
106
|
// console.log('response---->', res)
|
106
|
// console.log('response---->', res)
|
107
|
const token = res.headers['X-Authorization-JWT'] || res.headers['x-authorization-jwt'] || res.headers['X-AUTHORIZATION-JWT']
|
107
|
const token = res.headers['X-Authorization-JWT'] || res.headers['x-authorization-jwt'] || res.headers['X-AUTHORIZATION-JWT']
|
108
|
- console.log(`Header is ${res.headers}`)
|
|
|
|
|
108
|
+ console.log(`Header is ${JSON.stringify(res.headers)}`)
|
109
|
console.log(`Jwt is ${token}`)
|
109
|
console.log(`Jwt is ${token}`)
|
110
|
if (token) { // 更新本地存储token
|
110
|
if (token) { // 更新本地存储token
|
111
|
window.localStorage.Jwt = token
|
111
|
window.localStorage.Jwt = token
|