feat: chat export function is ready

This commit is contained in:
RockYang
2023-08-04 12:08:07 +08:00
parent 7903eed284
commit 8f1e28c0ab
6 changed files with 237 additions and 40 deletions

View File

@@ -779,8 +779,10 @@ const exportChat = () => {
if (!activeChat.value['chat_id']) {
return ElMessage.error("请先选中一个会话")
}
window.open(location.protocol + location.host + '/chat/export?chat_id=' + activeChat.value['chat_id'], '_blank');
const url = location.protocol + '//' + location.host + '/chat/export?chat_id=' + activeChat.value['chat_id']
// console.log(url)
window.open(url, '_blank');
}
</script>