From be516d75bdc7826cfffaa1ff34b68f1cafec7075 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Wed, 2 Apr 2025 21:06:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20upadte=20method=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/components/shared/ConsoleDisplayer.vue | 4 ++-- dashboard/src/stores/common.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/src/components/shared/ConsoleDisplayer.vue b/dashboard/src/components/shared/ConsoleDisplayer.vue index 1ec5458cb..dfee44ce9 100644 --- a/dashboard/src/components/shared/ConsoleDisplayer.vue +++ b/dashboard/src/components/shared/ConsoleDisplayer.vue @@ -43,7 +43,7 @@ export default { } }, mounted() { - if (this.logCache.length == 0) { + if (this.logCache.length === 0) { this.delayInit() } else { this.init() @@ -51,7 +51,7 @@ export default { }, methods: { delayInit() { - if (this.logCache.length == 0) { + if (this.logCache.length === 0) { setTimeout(() => { this.delayInit() }, 500) diff --git a/dashboard/src/stores/common.js b/dashboard/src/stores/common.js index ad12a2ac9..f983115ca 100644 --- a/dashboard/src/stores/common.js +++ b/dashboard/src/stores/common.js @@ -96,7 +96,7 @@ export const useCommonStore = defineStore({ // Store controller to allow closing the connection this.eventSource = controller; }, - closeWebSocket() { + closeEventSourcet() { if (this.eventSource) { this.eventSource.abort(); this.eventSource = null;