feat: 推荐帖子 调整

This commit is contained in:
2025-08-04 21:41:58 +08:00
parent c40c64c92f
commit 800052a900
5 changed files with 25 additions and 71 deletions

View File

@@ -76,7 +76,7 @@
import { ref } from 'vue'
import { defineEmits } from 'vue'
import { onLoad } from '@dcloudio/uni-app';
import { SCROLL_TO_BOTTOM } from '../../constant/constant'
import { SCROLL_TO_BOTTOM, RECOMMEND_POSTS_TITLE } from '@/constant/constant'
import { MessageRole, MessageType, CompName } from '../../model/ChatModel';
import ChatTopWelcome from './ChatTopWelcome.vue';
@@ -231,6 +231,13 @@
scrollToBottom()
}, 200)
})
uni.$on(RECOMMEND_POSTS_TITLE, (value) => {
console.log('RECOMMEND_POSTS_TITLE:', value)
if(value && value.length > 0) {
handleReply(value)
}
})
}
/// 获取最近一次的会话id