src/utils/request.ts
@@ -14,6 +14,10 @@ let downloadLoadingInstance: LoadingInstance; // 是否显示重新登录 export const isRelogin = { show: false }; export const globalHeaders = { 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;