refactor(websocket): 重构websocket模块并添加消息管理器

- 将websocket模块拆分为多个文件,提高代码可维护性
- 新增msgManage.ts处理不同类型的websocket消息
- 优化消息处理逻辑,减少重复代码
- 更新相关文件引用路径
This commit is contained in:
超级老白兔
2025-09-02 09:52:38 +08:00
parent cfa8182789
commit 20658c3ca5
8 changed files with 151 additions and 56 deletions

View File

@@ -4,7 +4,7 @@ import {
useWebSocketStore,
WebSocketStatus,
WebSocketMessage,
} from "@/store/module/websocket";
} from "@/store/module/websocket/websocket";
/**
* WebSocket使用示例组件