xcx 4 vuotta sitten
vanhempi
commit
bf844d7ed7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      src/util/PublicMethod.js

+ 1
- 1
src/util/PublicMethod.js Näytä tiedosto

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