From d8470d0f4bdb9ded9ab9b6fd9744f47d99473370 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Thu, 25 Nov 2021 23:33:35 +0800 Subject: [PATCH] Update: FileDialog download method --- web/src/component/FileDialog.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/src/component/FileDialog.js b/web/src/component/FileDialog.js index bfadc80..9960864 100644 --- a/web/src/component/FileDialog.js +++ b/web/src/component/FileDialog.js @@ -9,16 +9,20 @@ function FileDialog(props) { let navigate = useNavigate(); + const downloadURL = "/api/v1/get_file_direct?id=" + props.file.id; + return (

{props.file.filename}

- Download 使用 Axios 异步下载 + Download 使用浏览器下载原文件
Play 调用网页播放器播放

- + + +