From b40db32697e65cd0dbc8dcb65573c21c3b671bf0 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 18 Sep 2025 23:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E8=B0=83=E6=95=B4UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/viewPost/tp-vod.vue | 37 +++++++++++++----------------- src/utils/gachaCharts.ts | 3 ++- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/src/components/viewPost/tp-vod.vue b/src/components/viewPost/tp-vod.vue index 4e8ec46c..cd74ad37 100644 --- a/src/components/viewPost/tp-vod.vue +++ b/src/components/viewPost/tp-vod.vue @@ -25,8 +25,7 @@ import useAppStore from "@store/app.js"; import { getCurrentWindow } from "@tauri-apps/api/window"; import { getImageBuffer, saveCanvasImg, saveImgLocal } from "@utils/TGShare.js"; import { getVideoDuration } from "@utils/toolFunc.js"; -import Artplayer from "artplayer"; -import type { Option } from "artplayer/types/option.js"; +import Artplayer, { type Option } from "artplayer"; import { onMounted, onUnmounted, ref, shallowRef, toRaw } from "vue"; type TpVod = { @@ -126,26 +125,22 @@ onMounted(async () => { onUnmounted(() => { container.value?.destroy(); - if (coverBuffer.value) { - coverBuffer.value = null; - } - if (coverUrl.value) { - URL.revokeObjectURL(coverUrl.value); - } + if (coverBuffer.value) coverBuffer.value = null; + if (coverUrl.value) URL.revokeObjectURL(coverUrl.value); }); diff --git a/src/utils/gachaCharts.ts b/src/utils/gachaCharts.ts index 9cbf89fe..00b435b6 100644 --- a/src/utils/gachaCharts.ts +++ b/src/utils/gachaCharts.ts @@ -1,7 +1,7 @@ /** * @file utils/gachaCharts.ts * @description 祈愿图表配置 - * @since Beta v0.6.8 + * @since Beta v0.8.2 */ import TSUserGacha from "@Sqlm/userGacha.js"; @@ -236,6 +236,7 @@ async function getStackBarOptions(uid: string, gachaType?: string): Promise