🐛 fix: upadte method name

This commit is contained in:
Soulter
2025-04-02 21:06:59 +08:00
parent 951d5fde85
commit be516d75bd
2 changed files with 3 additions and 3 deletions
@@ -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)
+1 -1
View File
@@ -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;