| | |
| | | }; |
| | | // 发起ws请求 |
| | | sendWebsocket( |
| | | "ws://192.168.2.8:8089/chat?userId=1", |
| | | "ws://localhost:8089/chat?userId=1", |
| | | obj, |
| | | this.wsMessage, |
| | | this.wsError |
| | |
| | | }); |
| | | } |
| | | // 是否结束 |
| | | if (!dataJson.jsy) { |
| | | this.Answerline.push({ |
| | | value: dataJson.nowQuestion.questionText, |
| | | isEat: 1, |
| | | }); |
| | | } else { |
| | | if (dataJson.jsy) { |
| | | this.Answerline.push({ |
| | | value: dataJson.jsy, |
| | | isEat: 1, |
| | | }); |
| | | } else if (dataJson.nowQuestion.questionText) { |
| | | this.Answerline.push({ |
| | | value: dataJson.nowQuestion.questionText, |
| | | isEat: 1, |
| | | }); |
| | | } |
| | |
| | | console.log(obj, "入参"); |
| | | // 发起ws请求 |
| | | sendWebsocket( |
| | | "ws://192.168.2.8:8089/chat?userId=1", |
| | | "ws://localhost:8089/chat?userId=1", |
| | | obj, |
| | | this.wsMessage, |
| | | this.wsError |