处理聊天数据请求特殊情况
Some checks failed
Check / lint (push) Has been cancelled
Check / typecheck (push) Has been cancelled
Check / build (build, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:app, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:app, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Has been cancelled

This commit is contained in:
wangyifeng 2025-03-07 16:14:25 +08:00
parent e782b72b74
commit c4b4ec323a
2 changed files with 4 additions and 3 deletions

View File

@ -114,7 +114,8 @@ export const useTalkRecord = (uid) => {
) )
zpagingComplete(dialogueStore.index_name, reverseItems) zpagingComplete(dialogueStore.index_name, reverseItems)
const dialogueList = getDialogueList(dialogueStore.index_name) const dialogueList = getDialogueList(dialogueStore.index_name)
loadConfig.status = dialogueList.records?.[0]?.sequence > 1 ? 1 : 2 loadConfig.status =
dialogueList.records?.[0]?.sequence > 1 && data?.items?.length > 0 ? 1 : 2
// loadConfig.cursor = data.cursor // loadConfig.cursor = data.cursor
nextTick(() => { nextTick(() => {

View File

@ -831,9 +831,9 @@ watch(
(newValue, oldValue) => { (newValue, oldValue) => {
if (newValue) { if (newValue) {
const dialogueList = getDialogueList(talkParams.index_name) const dialogueList = getDialogueList(talkParams.index_name)
console.log(newValue[newValue.length - 1].sequence, dialogueList.records?.[0]?.sequence) // console.log(newValue[newValue.length - 1]?.sequence, dialogueList?.records?.[0]?.sequence)
if ( if (
newValue[newValue.length - 1].sequence === newValue[newValue.length - 1]?.sequence ===
dialogueList.records?.[0]?.sequence dialogueList.records?.[0]?.sequence
) { ) {
// //