src/api/core/auth.ts
@@ -79,13 +79,14 @@ } /** 退出登录 */ export async function logoutApi(accessToken: string) { export async function logoutApi(accessToken: string, tenant?: { tenantId: number | null; visitTenantId: number | null }) { return baseRequestClient.post( '/system/auth/logout', {}, { headers: { Authorization: `Bearer ${accessToken}`, ...(tenant ? { 'tenant-id': tenant.tenantId, 'visit-tenant-id': tenant.visitTenantId } : {}), }, }, );