mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 13:22:49 +00:00
fix: 修复重复SSE请求的问题
This commit is contained in:
parent
c4e72507e0
commit
603db9de7f
3
resources/assets/js/store/utils.js
vendored
3
resources/assets/js/store/utils.js
vendored
@ -129,11 +129,10 @@ export class SSEClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.retry > 0) {
|
if (this.retry > 0) {
|
||||||
|
this.retry--;
|
||||||
this.timer = setTimeout(() => {
|
this.timer = setTimeout(() => {
|
||||||
this.subscribe(type, handler);
|
this.subscribe(type, handler);
|
||||||
}, this.options.interval);
|
}, this.options.interval);
|
||||||
} else {
|
|
||||||
this.retry--;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user