Browse Source

模拟消息

liudan 8 months ago
parent
commit
63b8a2b3bd
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/api/index.js

+ 5 - 4
src/api/index.js

@@ -359,10 +359,11 @@ const testSocket = (getMessage) => {
 };
 // scoket创建
 export const initSocket = (obj, getMessage) => {
-  // 测试模拟发送消息!!!!
-  if (testSocket(getMessage)) {
-    return;
-  }
+  // 测试模拟发送消息start!!!!
+  // if (testSocket(getMessage)) {
+  //   return;
+  // }
+  // 测试模拟发送消息end!!!!
   if (window.socket) {
     return;
   }