可信代码库-AI大模型对于已经加入收藏的历史对话应该显示“取消收藏”

This commit is contained in:
付民康
2025-06-13 10:59:56 +08:00
parent 60352460cb
commit b3c1e9f159
2 changed files with 18 additions and 6 deletions

View File

@@ -394,6 +394,7 @@ const createConversation = async () => {
const createRes = response.data;
if (createRes&&createRes.conversationId) {
debugger
CONV_ID.value = createRes.conversationId;
console.log('创建会话成功会话ID:', CONV_ID.value);
nextTick(() => {
@@ -423,7 +424,6 @@ const fetchFollowupQuestions = async (question,df_id,sql_id='') => {
`${VITE_AI_API_HOST}/api/v0/provide_followup_questions`,
params
);
debugger
const createRes = response.data;
if (createRes&&createRes.questions) {
followupQuestions.value = createRes.questions
@@ -440,6 +440,12 @@ const fetchFollowupQuestions = async (question,df_id,sql_id='') => {
behavior: 'smooth',
});
});
nextTick(() => {
// 刷新会话列表
if (viewHistoryRef.value) {
viewHistoryRef.value.getQuestionHistory(); // 调用子组件方法
}
})
};
// 刷新猜你想问