src/utils/request.ts
@@ -35,7 +35,7 @@ } return !!accessSession; }; export const SESSION_KEY = 'hswatersession'; export const handleNoAuth = debounce(() => { emitNoAuth(); }); @@ -47,7 +47,7 @@ const accessSession = Local.get(accessSessionKey); if (accessSession) { // 将 token 添加到请求报文头中 config.headers['hswatersession'] = accessSession; config.headers[SESSION_KEY] = accessSession; } if (!NO_AUTH_API_LIST.includes(config.url) && !isSharePage.value) { if (!accessSession && config.url !== LOGIN_URL && config.url !== TEL_LOGIN_URL) {