使用临时接口时,试听列表中的下载按钮仍然能点击的Bug
parent
32e421356f
commit
893d20b4e9
|
@ -1,3 +1,7 @@
|
||||||
|
### 修复
|
||||||
|
|
||||||
|
- 使用临时接口时,试听列表中的下载按钮仍然能点击的Bug
|
||||||
|
|
||||||
### 移除
|
### 移除
|
||||||
|
|
||||||
- 移除列表栏设置的隐藏专辑栏选项(感觉这个设置并没有什么luan用,并且还会打破布局)
|
- 移除列表栏设置的隐藏专辑栏选项(感觉这个设置并没有什么luan用,并且还会打破布局)
|
||||||
|
|
|
@ -137,7 +137,6 @@ export default {
|
||||||
this.clickIndex = -1
|
this.clickIndex = -1
|
||||||
},
|
},
|
||||||
testPlay(index) {
|
testPlay(index) {
|
||||||
if (this.isAPITemp && this.list[index].source != 'kw') return
|
|
||||||
this.setList({ list: this.list, listId: 'test', index })
|
this.setList({ list: this.list, listId: 'test', index })
|
||||||
},
|
},
|
||||||
handleRemove(index) {
|
handleRemove(index) {
|
||||||
|
@ -146,16 +145,17 @@ export default {
|
||||||
handleListBtnClick(info) {
|
handleListBtnClick(info) {
|
||||||
switch (info.action) {
|
switch (info.action) {
|
||||||
case 'download':
|
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.$nextTick(() => {
|
||||||
this.isShowDownload = true
|
this.isShowDownload = true
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
case 'play':
|
case 'play':
|
||||||
|
if (this.isAPITemp && this.list[info.index].source != 'kw') return
|
||||||
this.testPlay(info.index)
|
this.testPlay(info.index)
|
||||||
break
|
break
|
||||||
case 'add':
|
|
||||||
break
|
|
||||||
case 'remove':
|
case 'remove':
|
||||||
this.handleRemove(info.index)
|
this.handleRemove(info.index)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue