fix danmakutype: enter

This commit is contained in:
2024-02-21 22:34:49 +08:00
parent 27336f6e82
commit c70bc65f30
3 changed files with 121 additions and 46 deletions

View File

@@ -101,13 +101,13 @@ const createRules: FormRules = {
}
const paddingVideos = computed(() => {
return videoDetail.value.videos.filter((v) => v.info.status == VideoStatus.Pending)
return videoDetail.value?.videos?.filter((v) => v.info.status == VideoStatus.Pending) ?? []
})
const rejectVideos = computed(() => {
return videoDetail.value.videos.filter((v) => v.info.status == VideoStatus.Rejected)
return videoDetail.value?.videos?.filter((v) => v.info.status == VideoStatus.Rejected) ?? []
})
const acceptVideos = computed(() => {
return videoDetail.value.videos.filter((v) => v.info.status == VideoStatus.Accepted)
return videoDetail.value?.videos?.filter((v) => v.info.status == VideoStatus.Accepted) ?? []
})
async function getData() {
@@ -121,6 +121,7 @@ async function getData() {
description: data.data.table.description,
maxVideoCount: data.data.table.maxVideoCount,
} as VideoCollectCreateModel
console.log(data.data)
return data.data
}
} catch (err) {