diff --git a/publish/changeLog.md b/publish/changeLog.md index b6c5a816..92ec8c11 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,3 +1,7 @@ +### 修复 + +- 使用临时接口时,试听列表中的下载按钮仍然能点击的Bug + ### 移除 - 移除列表栏设置的隐藏专辑栏选项(感觉这个设置并没有什么luan用,并且还会打破布局) diff --git a/src/renderer/views/List.vue b/src/renderer/views/List.vue index 5c2f080b..2bba042c 100644 --- a/src/renderer/views/List.vue +++ b/src/renderer/views/List.vue @@ -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