mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 12:13:46 +08:00
feat: chat export function is ready
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user