可信代码库-AI大模型对于已经加入收藏的历史对话应该显示“取消收藏”
This commit is contained in:
@@ -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(); // 调用子组件方法
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
// 刷新猜你想问
|
||||
|
||||
Reference in New Issue
Block a user