feat: 移除播放控制器中的连接成功和断开连接提示信息,优化代码整洁性

This commit is contained in:
xudan 2025-10-10 13:45:28 +08:00
parent 32469bf6a7
commit 4ce5921d5c

View File

@ -69,7 +69,6 @@ export function usePlaybackWebSocket(editorService: ShallowRef<EditorService | u
// [关键修复] ws.create() 返回时连接已建立,直接执行连接成功逻辑
isConnected.value = true;
message.success('回放连接已建立');
startRenderLoop();
wsInstance.onmessage = (event) => {
@ -94,7 +93,7 @@ export function usePlaybackWebSocket(editorService: ShallowRef<EditorService | u
isConnected.value = false;
isPlaying.value = false;
stopRenderLoop();
message.info('回放连接已断开');
// message.info('回放连接已断开');
client.value = null; // Clean up the client ref
};