fix(home): 添加currentDMid空值检查防止异常

This commit is contained in:
yangzhe 2025-12-17 16:26:42 +08:00
parent b7134046e8
commit b96a82ad96
1 changed files with 6 additions and 0 deletions

View File

@ -909,6 +909,8 @@ export default {
//
handleGetConversationDetail() {
if (!this.currentDMid) return;
this.$u.api
.GetConversationDetail({
"Item1.Id": this.currentDMid,
@ -932,6 +934,8 @@ export default {
// >1退
refreshPageWithFallback() {
if (!this.currentDMid) return;
const currentIndex = this.pageQuery.PageIndex || 1;
const pageSize = this.pageQuery.PageSize;
@ -983,6 +987,8 @@ export default {
onScrollToUpper() {
console.log("触发上拉刷新");
if (!this.currentDMid) return;
//
if (this.noMoreData || this.isSwitchingConversation) {
return;