使用临时接口时,试听列表中的下载按钮仍然能点击的Bug

pull/96/head
lyswhut 2019-08-22 00:42:42 +08:00
parent 32e421356f
commit 893d20b4e9
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
### 修复
- 使用临时接口时试听列表中的下载按钮仍然能点击的Bug
### 移除
- 移除列表栏设置的隐藏专辑栏选项感觉这个设置并没有什么luan用并且还会打破布局

View File

@ -137,7 +137,6 @@ export default {
this.clickIndex = -1
},
testPlay(index) {
if (this.isAPITemp && this.list[index].source != 'kw') return
this.setList({ list: this.list, listId: 'test', index })
},
handleRemove(index) {
@ -146,16 +145,17 @@ export default {
handleListBtnClick(info) {
switch (info.action) {
case 'download':
this.musicInfo = this.list[info.index]
const minfo = this.list[info.index]
if (this.isAPITemp && minfo.source != 'kw') return
this.musicInfo = minfo
this.$nextTick(() => {
this.isShowDownload = true
})
break
case 'play':
if (this.isAPITemp && this.list[info.index].source != 'kw') return
this.testPlay(info.index)
break
case 'add':
break
case 'remove':
this.handleRemove(info.index)
break