update 优化 整体代码结构

This commit is contained in:
疯狂的狮子Li
2023-08-11 17:58:58 +08:00
parent 73df6a1b30
commit f3195be732
16 changed files with 62 additions and 68 deletions

View File

@ -16,10 +16,10 @@ let downloadLoadingInstance: LoadingInstance;
export const isRelogin = { show: false };
export const globalHeaders = () => {
return {
Authorization: "Bearer " + getToken(),
Authorization: 'Bearer ' + getToken(),
clientid: import.meta.env.VITE_APP_CLIENT_ID
}
}
};
};
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8';
axios.defaults.headers['clientid'] = import.meta.env.VITE_APP_CLIENT_ID;