refactor(websocket): 重构websocket模块并添加消息管理器
- 将websocket模块拆分为多个文件,提高代码可维护性 - 新增msgManage.ts处理不同类型的websocket消息 - 优化消息处理逻辑,减少重复代码 - 更新相关文件引用路径
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
useWebSocketStore,
|
||||
WebSocketStatus,
|
||||
WebSocketMessage,
|
||||
} from "@/store/module/websocket";
|
||||
} from "@/store/module/websocket/websocket";
|
||||
|
||||
/**
|
||||
* WebSocket使用示例组件
|
||||
|
||||
Reference in New Issue
Block a user