From 774719fb50a38031016ed7a5c718ae6f0cc0a35c Mon Sep 17 00:00:00 2001 From: zhaoying Date: Tue, 17 Mar 2026 17:37:03 +0800 Subject: [PATCH] revert(web): file download --- .../components/PerceptualLastInfo.tsx | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/web/src/views/UserMemoryDetail/components/PerceptualLastInfo.tsx b/web/src/views/UserMemoryDetail/components/PerceptualLastInfo.tsx index 1af50b3e..ad7946f0 100644 --- a/web/src/views/UserMemoryDetail/components/PerceptualLastInfo.tsx +++ b/web/src/views/UserMemoryDetail/components/PerceptualLastInfo.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 18:32:23 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-17 17:15:14 + * @Last Modified time: 2026-03-17 17:36:49 */ import { type FC, useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' @@ -92,22 +92,7 @@ const PerceptualLastInfo: FC<{ type: 'last_visual' | 'last_listen' | 'last_text' const handleDownload = async () => { if (!data.file_path) return - if (data.file_path.includes('.redbearai.') || data.file_path.includes('.memorybear.')) { - try { - const res = await fetch(data.file_path) - const blob = await res.blob() - const url = URL.createObjectURL(blob) - const a = document.createElement('a') - a.href = url - a.download = data.file_name || 'download' - a.click() - URL.revokeObjectURL(url) - } catch { - window.open(data.file_path, '_blank') - } - } else { - window.open(data.file_path, '_blank') - } + window.open(data.file_path, '_blank') } return (