no message

This commit is contained in:
kuaifan
2024-06-04 21:07:26 +08:00
parent 62f4d43bd9
commit da84f15e9f
5 changed files with 20 additions and 11 deletions

View File

@@ -504,3 +504,5 @@ Api接口文档
语音文件不存在
语音转文字失败
仅支持语音消息
视频

View File

@@ -1608,3 +1608,6 @@ License Key
上传本地文件
智谱清言
已超期
视频
发起会议

View File

@@ -40,11 +40,13 @@ export default {
data() {
return {
show: false,
timeShow: null,
timeCheck: null,
}
},
beforeDestroy() {
this.show = false
this.clearTimer()
},
computed: {
@@ -54,9 +56,12 @@ export default {
watch: {
ajaxNetworkException: {
handler(v) {
this.show = v;
this.clearTimer()
if (v) {
this.checkNetwork();
this.timeShow = setTimeout(_ => {
this.show = true;
}, 5000)
}
},
immediate: true
@@ -70,8 +75,8 @@ export default {
},
checkNetwork() {
this.__timer && clearTimeout(this.__timer);
this.__timer = setTimeout(() => {
this.timeCheck && clearTimeout(this.timeCheck);
this.timeCheck = setTimeout(() => {
if (!this.ajaxNetworkException) {
return; // 已经恢复
}
@@ -84,6 +89,11 @@ export default {
this.checkNetwork();
});
}, 3000);
},
clearTimer() {
this.timeShow && clearTimeout(this.timeShow)
this.show = false
}
}
}

View File

@@ -573,12 +573,6 @@ export default {
this.dialogSearchKey = '';
return;
}
if (this.tabActive === 'dialog') {
// todo 日志输出对话详情信息
if (/^info\.\d+$/.test(val)) {
console.log(this.cacheDialogs.find(item => item.id == val.replace('info.', '')));
}
}
//
this.dialogSearchList = [];
if (val == '') {