chore: sse close before logout

This commit is contained in:
dap
2024-09-12 16:45:12 +08:00
parent 6b9c048d13
commit cd526828b3
3 changed files with 12 additions and 4 deletions

View File

@@ -91,6 +91,14 @@ export function doLogout() {
return requestClient.post<void>('/auth/logout');
}
/**
* 关闭sse连接
* @returns void
*/
export function seeConnectionClose() {
return requestClient.get<void>('/resource/sse/close');
}
/**
* @param companyName 租户/公司名称
* @param domain 绑定域名(不带http(s)://) 可选