处理聊天数据请求特殊情况
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
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:
parent
e782b72b74
commit
c4b4ec323a
@ -114,7 +114,8 @@ export const useTalkRecord = (uid) => {
|
||||
)
|
||||
zpagingComplete(dialogueStore.index_name, reverseItems)
|
||||
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
|
||||
|
||||
nextTick(() => {
|
||||
|
@ -831,9 +831,9 @@ watch(
|
||||
(newValue, oldValue) => {
|
||||
if (newValue) {
|
||||
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 (
|
||||
newValue[newValue.length - 1].sequence ===
|
||||
newValue[newValue.length - 1]?.sequence ===
|
||||
dialogueList.records?.[0]?.sequence
|
||||
) {
|
||||
//相同意味着分页加载缓存中的聊天记录完毕
|
||||
|
Loading…
Reference in New Issue
Block a user