update logout logic

This commit is contained in:
AceDataCloud committed 2023-02-12 02:02:25 +08:00
1 parent f22d21bb53
commit 7e23b014b6
4 files changed
+19 -14

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ const httpClient: AxiosInstance = axios.create({
});
httpClient.interceptors.request.use((config) => {
const accessToken = store.getters.accessToken || getCookie('ACCESS_TOKEN');
const accessToken = store.getters.accessToken;
if (accessToken) {
config.headers['Authorization'] = `Bearer ${accessToken}`;
}