diff --git a/src/assets/logo.png b/src/assets/logo.png index 46f4960..c057bfd 100644 Binary files a/src/assets/logo.png and b/src/assets/logo.png differ diff --git a/src/utils/axios.js b/src/utils/axios.js index 4b8a416..bbf967a 100644 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -17,14 +17,15 @@ axios.defaults.headers = getNeedToken(); function getNeedToken() { - console.log(333, localGet("token")); const ret_token = localGet("token"); - if (ret_token) { + if (ret_token && ret_token.timestamp) { ret_token.timestamp = new Date().getTime(); const tokenInfo = token.encode(ret_token).finish(); // 直接转换为string丢到header里,header的key为"cdcm" const cdcm = tokenInfo.slice(0, tokenInfo.length).toString() return { cdcm }; + } else { + localRemove("token"); } } diff --git a/src/views/Login.vue b/src/views/Login.vue index 1ab8f75..89a0ffd 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -9,7 +9,7 @@