fix: 修复重复SSE请求的问题
This commit is contained in:
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) {
|
||||
this.retry--;
|
||||
this.timer = setTimeout(() => {
|
||||
this.subscribe(type, handler);
|
||||
}, this.options.interval);
|
||||
} else {
|
||||
this.retry--;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user