feat(frontend):添加弹幕功能并优化股票组件

- 在 stock.vue 中集成 vue3-danmaku 弹幕组件
- 实现 WebSocket 连接以接收实时弹幕消息
- 添加发送弹幕功能
- 优化股票搜索和显示逻辑
- 更新 App.vue 中的导入信息
- 在 package.json 中添加 vue3-danmaku 依赖
This commit is contained in:
ArvinLovegood 2025-02-23 22:02:20 +08:00
parent 67bd9e7996
commit b3f23fc4db

View File

@ -146,7 +146,6 @@ onMounted(() => {
GetVersionInfo().then((res) => { GetVersionInfo().then((res) => {
icon.value = res.icon; icon.value = res.icon;
}); });
// WebSocket // WebSocket
ws.value = new WebSocket('ws://8.134.249.145:16688/ws'); // WebSocket ws.value = new WebSocket('ws://8.134.249.145:16688/ws'); // WebSocket