From 0fd4b2aa016940dbc70353f4bc45429ca2d1ea9e Mon Sep 17 00:00:00 2001 From: lq Date: Thu, 26 Jun 2025 09:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/chat.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/chat.blade.php b/resources/views/chat.blade.php index 0a545d81..04012273 100644 --- a/resources/views/chat.blade.php +++ b/resources/views/chat.blade.php @@ -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' // 通常也需要指定内容类型