From 603db9de7f63da40141f0b233c3dfaf33304b5f3 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 14 Dec 2023 16:00:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=A4=8DSSE?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/store/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/assets/js/store/utils.js b/resources/assets/js/store/utils.js index 0a387f68c..da6167ade 100644 --- a/resources/assets/js/store/utils.js +++ b/resources/assets/js/store/utils.js @@ -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--; } }; }