xcx il y a 4 ans
Parent
révision
7a4a1dade2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/util/PublicMethod.js

+ 1
- 1
src/util/PublicMethod.js Voir le fichier

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 ${JSON.stringify(res.headers)}`)
108
+      console.log(`Header is ${JSON.stringify(res)}`)
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