新增下载的歌曲按列表名分组的功能(#2145)
This commit is contained in:
@@ -23,6 +23,10 @@ export default {
|
||||
type: [Object, null],
|
||||
required: true,
|
||||
},
|
||||
listId: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
bgClose: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
@@ -51,7 +55,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleClick(quality) {
|
||||
void createDownloadTasks([this.musicInfo], quality)
|
||||
void createDownloadTasks([this.musicInfo], quality, this.listId)
|
||||
this.handleClose()
|
||||
},
|
||||
handleClose() {
|
||||
|
||||
@@ -23,6 +23,10 @@ export default {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
listId: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
list: {
|
||||
type: Array,
|
||||
default() {
|
||||
@@ -37,7 +41,7 @@ export default {
|
||||
emits: ['update:show', 'confirm'],
|
||||
methods: {
|
||||
handleClick(quality) {
|
||||
void createDownloadTasks(this.list.filter(item => item.source != 'local'), quality)
|
||||
void createDownloadTasks(this.list.filter(item => item.source != 'local'), quality, this.listId)
|
||||
this.handleClose()
|
||||
this.$emit('confirm')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user