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