API版本化:迁移聊天与账号任务入口

This commit is contained in:
Christ committed 2026-08-14 18:01:24 +08:00
1 parent 42e37f7898
commit d3648e9985
11 files changed
+166 -25

No files matched your search

+1 -1
View File
@@ -212,7 +212,7 @@ const Chat: React.FC = () => {
if (disposed) return;
setLiveState('connecting');
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
socket = new WebSocket(`${protocol}//${window.location.host}/api/chat/ws`);
socket = new WebSocket(`${protocol}//${window.location.host}/api/v1/chat/ws`);
socket.onopen = () => { retry = 0; setLiveState('online'); };
socket.onmessage = event => {
try {