Skip to content

Commit 8549c15

Browse files
author
Kerwin
committed
fix: 切换会话遮罩层未关闭
1 parent cc95f02 commit 8549c15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/store/modules/chat/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ export const useChatStore = defineStore('chat-store', {
5757
}
5858
const hisroty = this.history.filter(item => item.uuid === h.uuid)[0]
5959
if (hisroty === undefined || hisroty.loading || hisroty.all) {
60-
// callback && callback()
60+
if (lastId === undefined) {
61+
// 加载更多不回调 避免加载概率消失
62+
callback && callback()
63+
}
6164
if (hisroty?.all ?? false)
6265
callbackForEmptyMessage && callbackForEmptyMessage()
6366
return

0 commit comments

Comments
 (0)