Explorar o código

fix: 修复websocket错误处理不生效的bug

zhupei@smartai.com hai 1 ano
pai
achega
3fb94b370e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/conversation/ConversationChatContainer.vue

+ 1 - 1
src/views/conversation/ConversationChatContainer.vue

@@ -512,7 +512,7 @@ function handleWSMessage(e) {
 function handleWSError(e) {
   console.log('socket-error-8jfdksagjsfdjaklnfsdajkl', e);
   handleChatRequestionException({
-    message: e.message
+    message: `WebSocket ${e.type}: ${e.url}`
   });
 }