diff --git a/src/views/Agent/Chat/components/HistoryChat.vue b/src/views/Agent/Chat/components/HistoryChat.vue index 1ead5f6..abf5104 100644 --- a/src/views/Agent/Chat/components/HistoryChat.vue +++ b/src/views/Agent/Chat/components/HistoryChat.vue @@ -39,11 +39,7 @@ const props = defineProps({ cozeInfo: { type: Object as () => any, default: () => ({}), - }, - botId: { - type: String, - default: '', - }, + } }); const delMessage = async (chatId, conversationId) => { @@ -67,7 +63,7 @@ const truncateText = (text: string, maxLength = 30) => { }; onMounted(() => { - getHistoryChatData(props.botId); + getHistoryChatData(props.cozeInfo.bot_id); });