Skip to content

Commit

Permalink
设置默认画质为最高画质
Browse files Browse the repository at this point in the history
设置默认画质为最高画质
  • Loading branch information
chal34 committed Jun 24, 2023
1 parent a061112 commit 392cb4b
Show file tree
Hide file tree
Showing 2 changed files with 7,930 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/VideoModal/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ const handleDownload = async () => {
}
const open = (data: VideoData) => {
const quality = userQuality[store.baseStore().loginStatus]
data.qualityOptions.filter((item: any) => quality.includes(item.value))
const UserGetQuality = userQuality[store.baseStore().loginStatus]
data.qualityOptions.filter((item: any) => UserGetQuality.includes(item.value))
videoInfo.value = data
visible.value = true
// 默认选择最高画质
quality.value = data.qualityOptions[0].value
// 如果是单p,则默认选中
if (videoInfo.value.page.length === 1) {
selected.value.push(videoInfo.value.page[0].page)
Expand Down

0 comments on commit 392cb4b

Please sign in to comment.