mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
fix: 修复已连接状态下的重复调用逻辑
This commit is contained in:
@@ -183,6 +183,9 @@ export const useDanmakuClient = defineStore('DanmakuClient', () => {
|
||||
}
|
||||
return useDanmakuClient(); // 如果已连接,则视为“成功”
|
||||
}
|
||||
if (state.value === 'connected') {
|
||||
return useDanmakuClient(); // 如果已连接,则视为“成功”
|
||||
}
|
||||
|
||||
isInitializing = true;
|
||||
state.value = 'connecting';
|
||||
|
||||
Reference in New Issue
Block a user