✏️ 修正 vod.id 类型

This commit is contained in:
BTMuli
2023-12-07 13:57:03 +08:00
parent 3883f9880a
commit fcb5f94656

View File

@@ -21,7 +21,7 @@ import { onMounted, ref, toRaw } from "vue";
interface TpVod { interface TpVod {
insert: { insert: {
vod: { vod: {
id: number; id: string;
duration: number; duration: number;
cover: string; cover: string;
resolutions: Array<{ resolutions: Array<{
@@ -52,7 +52,7 @@ console.log("tpVod", props.data.insert.vod.id, toRaw(props.data).insert.vod);
onMounted(async () => { onMounted(async () => {
const option: Option = { const option: Option = {
id: props.data.insert.vod.id.toString(), id: props.data.insert.vod.id,
container: `#tp-vod-${props.data.insert.vod.id}`, container: `#tp-vod-${props.data.insert.vod.id}`,
url: "", url: "",
poster: props.data.insert.vod.cover, poster: props.data.insert.vod.cover,