bug修复
This commit is contained in:
parent
840d26197f
commit
dd9722862f
@ -1,5 +1,5 @@
|
|||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import { onShow, onUnload } from '@dcloudio/uni-app'
|
import { onShow, onUnload, onLoad } from '@dcloudio/uni-app'
|
||||||
import api from '@/utils/api.js'
|
import api from '@/utils/api.js'
|
||||||
import useTeamStore from '@/store/team.js'
|
import useTeamStore from '@/store/team.js'
|
||||||
|
|
||||||
@ -115,6 +115,7 @@ export default function useGroupChat(groupID) {
|
|||||||
getGroupInfo()
|
getGroupInfo()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
onUnload(() => {
|
onUnload(() => {
|
||||||
// 清理资源
|
// 清理资源
|
||||||
})
|
})
|
||||||
|
|||||||
@ -883,15 +883,7 @@ onShow(() => {
|
|||||||
timChatManager.tim &&
|
timChatManager.tim &&
|
||||||
timChatManager.isLoggedIn &&
|
timChatManager.isLoggedIn &&
|
||||||
chatInfo.value.conversationID
|
chatInfo.value.conversationID
|
||||||
) {
|
)
|
||||||
// 页面从后台返回时,重新加载消息列表
|
|
||||||
console.log("页面从后台返回,重新加载消息列表");
|
|
||||||
messageList.value = [];
|
|
||||||
isCompleted.value = false;
|
|
||||||
lastFirstMessageId.value = "";
|
|
||||||
// loadMessageList();
|
|
||||||
}
|
|
||||||
|
|
||||||
startIMMonitoring(30000);
|
startIMMonitoring(30000);
|
||||||
|
|
||||||
// 监听回访任务发送事件
|
// 监听回访任务发送事件
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user