mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
feat(frontend):添加弹幕功能并优化股票组件
- 在 stock.vue 中集成 vue3-danmaku 弹幕组件 - 实现 WebSocket 连接以接收实时弹幕消息 - 添加发送弹幕功能 - 优化股票搜索和显示逻辑 - 更新 App.vue 中的导入信息 - 在 package.json 中添加 vue3-danmaku 依赖
This commit is contained in:
parent
67bd9e7996
commit
b3f23fc4db
@ -146,7 +146,6 @@ onMounted(() => {
|
||||
GetVersionInfo().then((res) => {
|
||||
icon.value = res.icon;
|
||||
});
|
||||
|
||||
// 创建 WebSocket 连接
|
||||
ws.value = new WebSocket('ws://8.134.249.145:16688/ws'); // 替换为你的 WebSocket 服务器地址
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user