diff --git a/src/client/ClientAutoAction.vue b/src/client/ClientAutoAction.vue index 57d6a31..dff7921 100644 --- a/src/client/ClientAutoAction.vue +++ b/src/client/ClientAutoAction.vue @@ -452,21 +452,8 @@ function confirmTest() { } onMounted(() => { - const stopWatch = watch(() => danmakuClient.state, (newState) => { - if (newState === 'connected') { - console.log('[ClientAutoAction] Danmaku client connected, initializing store...'); - autoActionStore.init(); - stopWatch(); - } else if (newState !== 'connecting' && newState !== 'waiting') { - console.warn(`[ClientAutoAction] Danmaku client state is ${newState}, auto actions might not work.`); - } - }, { immediate: true }); + autoActionStore.init(); }); - -onUnmounted(() => { - console.log('[ClientAutoAction] Unmounted.'); -}); -