测试
This commit is contained in:
@@ -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' // 通常也需要指定内容类型
|
||||
|
||||
Reference in New Issue
Block a user