From f029306ebba31506c8ca8d3f84ed606332cfe135 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Wed, 19 Nov 2025 13:40:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E6=B7=BB=E5=8A=A0=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=A7=86=E9=A2=91=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/viewPost/tp-vod.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/viewPost/tp-vod.vue b/src/components/viewPost/tp-vod.vue index cd74ad37..bf7c0173 100644 --- a/src/components/viewPost/tp-vod.vue +++ b/src/components/viewPost/tp-vod.vue @@ -23,6 +23,7 @@ import showLoading from "@comp/func/loading.js"; import useAppStore from "@store/app.js"; import { getCurrentWindow } from "@tauri-apps/api/window"; +import { openUrl } from "@tauri-apps/plugin-opener"; import { getImageBuffer, saveCanvasImg, saveImgLocal } from "@utils/TGShare.js"; import { getVideoDuration } from "@utils/toolFunc.js"; import Artplayer, { type Option } from "artplayer"; @@ -106,7 +107,7 @@ onMounted(async () => { name: "download-cover", index: 0, position: "right", - html: ``, + html: ``, tooltip: "下载封面", click: async () => { await showLoading.start("正在下载封面", props.data.insert.vod.cover); @@ -117,6 +118,17 @@ onMounted(async () => { await showLoading.end(); }, }, + { + name: "download-video", + index: 0, + position: "right", + html: ``, + tooltip: "下载视频", + click: async () => { + if (!container.value) return; + await openUrl(container.value.url); + }, + }, ], }; container.value = new Artplayer(option);