提交 0c69d80d 编写于 作者: guangjun.yang's avatar guangjun.yang

解决网络问题

上级 26836661
...@@ -895,7 +895,7 @@ export default { ...@@ -895,7 +895,7 @@ export default {
}, },
// 发送通用消息 // 发送通用消息
sendCommonMsg(params) { async sendCommonMsg(params) {
let sendMsgParams = { let sendMsgParams = {
fromAccount: this.picakfAccId, fromAccount: this.picakfAccId,
toAccount: this.currentToAccId, toAccount: this.currentToAccId,
...@@ -915,7 +915,7 @@ export default { ...@@ -915,7 +915,7 @@ export default {
let sendId = new Date().getTime(); let sendId = new Date().getTime();
this.handleSendMsg(params, sendId); this.handleSendMsg(params, sendId);
console.log("sendMsgParams", params); console.log("sendMsgParams", params);
this.POST("/im/msg/sendMessage", params).then(res => { await this.POST("/im/msg/sendMessage1212", params).then(res => {
if (res.code === "000000") { if (res.code === "000000") {
// 校验结果:1校验通过 2校验不通过 // 校验结果:1校验通过 2校验不通过
console.log(res.data.checkFlag); console.log(res.data.checkFlag);
...@@ -938,11 +938,17 @@ export default { ...@@ -938,11 +938,17 @@ export default {
type: "error" type: "error"
}); });
} }
}).catch( error => {
let msg = this.messageList[this.messageList.length - 1];
msg.isShowLoadingIcon = false;
msg.isShowErrorIcon = true;
msg.isShowErrorMsg = false; // 只有在下次拉取新数据时才有可能是为ture
msg.canRepeatSend = true;
});
// 重新开启定时器 // 重新开启定时器
forwardMsgIntervalId = setInterval(() => { forwardMsgIntervalId = setInterval(() => {
this.getMSGForward(); this.getMSGForward();
}, 10000); }, 10000);
});
}, },
// 文件大小单位转换 // 文件大小单位转换
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册