We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc95f02 commit 8549c15Copy full SHA for 8549c15
src/store/modules/chat/index.ts
@@ -57,7 +57,10 @@ export const useChatStore = defineStore('chat-store', {
57
}
58
const hisroty = this.history.filter(item => item.uuid === h.uuid)[0]
59
if (hisroty === undefined || hisroty.loading || hisroty.all) {
60
- // callback && callback()
+ if (lastId === undefined) {
61
+ // 加载更多不回调 避免加载概率消失
62
+ callback && callback()
63
+ }
64
if (hisroty?.all ?? false)
65
callbackForEmptyMessage && callbackForEmptyMessage()
66
return
0 commit comments