🐛 fix: upadte method name
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user