This commit is contained in:
2025-06-26 09:59:41 +08:00
parent 609cb8e0d8
commit 0fd4b2aa01

View File

@@ -662,7 +662,7 @@
let token = sessionStorage.getItem('token');
if (socket && socket.readyState === WebSocket.OPEN) {
axios.post('/api/b', message, {
axios.post('/api/im/send-message', message, {
headers: {
'Authorization': `Bearer ${token}`, // 假设使用 Bearer token
'Content-Type': 'application/json' // 通常也需要指定内容类型