fix 修复 关闭sse功能 登出还是会发送sse关闭请求导致报错问题
This commit is contained in:
parent
2ef0cf5bd5
commit
5f582c09ba
@ -51,10 +51,12 @@ export function register(data: any) {
|
|||||||
* 注销
|
* 注销
|
||||||
*/
|
*/
|
||||||
export function logout() {
|
export function logout() {
|
||||||
request({
|
if (import.meta.env.VITE_APP_SSE === 'true') {
|
||||||
url: '/resource/sse/close',
|
request({
|
||||||
method: 'get'
|
url: '/resource/sse/close',
|
||||||
});
|
method: 'get'
|
||||||
|
});
|
||||||
|
}
|
||||||
return request({
|
return request({
|
||||||
url: '/auth/logout',
|
url: '/auth/logout',
|
||||||
method: 'post'
|
method: 'post'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user