Skip to content

Commit 893d20b

Browse files
committed
使用临时接口时,试听列表中的下载按钮仍然能点击的Bug
1 parent 32e4213 commit 893d20b

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

publish/changeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 修复
2+
3+
- 使用临时接口时,试听列表中的下载按钮仍然能点击的Bug
4+
15
### 移除
26

37
- 移除列表栏设置的隐藏专辑栏选项(感觉这个设置并没有什么luan用,并且还会打破布局)

src/renderer/views/List.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ export default {
137137
this.clickIndex = -1
138138
},
139139
testPlay(index) {
140-
if (this.isAPITemp && this.list[index].source != 'kw') return
141140
this.setList({ list: this.list, listId: 'test', index })
142141
},
143142
handleRemove(index) {
@@ -146,16 +145,17 @@ export default {
146145
handleListBtnClick(info) {
147146
switch (info.action) {
148147
case 'download':
149-
this.musicInfo = this.list[info.index]
148+
const minfo = this.list[info.index]
149+
if (this.isAPITemp && minfo.source != 'kw') return
150+
this.musicInfo = minfo
150151
this.$nextTick(() => {
151152
this.isShowDownload = true
152153
})
153154
break
154155
case 'play':
156+
if (this.isAPITemp && this.list[info.index].source != 'kw') return
155157
this.testPlay(info.index)
156158
break
157-
case 'add':
158-
break
159159
case 'remove':
160160
this.handleRemove(info.index)
161161
break

0 commit comments

Comments
 (0)