TODO:可信代码库-屏蔽所有Message.error
This commit is contained in:
@@ -486,11 +486,11 @@ const createConversation = async () => {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
Message.error('创建会话失败,未获取到会话ID');
|
||||
// Message.error('创建会话失败,未获取到会话ID');
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('创建会话失败:', error);
|
||||
Message.error('创建会话失败,请重试');
|
||||
// Message.error('创建会话失败,请重试');
|
||||
}
|
||||
};
|
||||
// 猜你想问接口
|
||||
@@ -559,7 +559,7 @@ const getConversationDetail = async (convId: string) => {
|
||||
conversationId: convId,
|
||||
});
|
||||
if(response.data?.error) {
|
||||
Message.error(response.data?.error);
|
||||
// Message.error(response.data?.error);
|
||||
} else {
|
||||
const detail = response.data.messages;
|
||||
// 处理详情数据(如回显消息列表)
|
||||
@@ -567,7 +567,7 @@ const getConversationDetail = async (convId: string) => {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取会话详情失败:', error);
|
||||
Message.error('获取会话详情失败,请重试');
|
||||
// Message.error('获取会话详情失败,请重试');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user