Skip to content

Commit d4c88ed

Browse files
committed
修复列表多选音源限制Bug
1 parent 90288da commit d4c88ed

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

publish/changeLog.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
### 新增
1+
### 修复
22

3-
- 新增搜索列表批量试听与下载功能
4-
- 新增排行榜列表批量试听与下载功能
5-
- 新增试听列表批量移除与下载功能
6-
- 新增下载列表批量开始、暂停与移除功能
7-
8-
### 优化
9-
10-
- 优化歌曲切换机制
3+
- 修复列表多选音源限制Bug

src/renderer/views/Leaderboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
material-pagination(:count="info.total" :limit="info.limit" :page="info.page" @btn-click="handleTogglePage")
4040
material-download-modal(:show="isShowDownload" :musicInfo="musicInfo" @select="handleAddDownload" @close="isShowDownload = false")
4141
material-download-multiple-modal(:show="isShowDownloadMultiple" :list="selectdData" @select="handleAddDownloadMultiple" @close="isShowDownloadMultiple = false")
42-
material-flow-btn(:show="isShowEditBtn" :remove-btn="false" @btn-click="handleFlowBtnClick")
42+
material-flow-btn(:show="isShowEditBtn && (source == 'kw' || (!isAPITemp && source == 'tx'))" :remove-btn="false" @btn-click="handleFlowBtnClick")
4343
</template>
4444

4545
<script>

src/renderer/views/List.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ export default {
173173
this.selectdData = []
174174
},
175175
handleAddDownloadMultiple(type) {
176-
this.createDownloadMultiple({ list: [...this.selectdData], type })
176+
const list = this.setting.apiSource == 'temp' ? this.selectdData.filter(s => s.source == 'kw') : [...this.selectdData]
177+
this.createDownloadMultiple({ list, type })
177178
this.resetSelect()
178179
this.isShowDownloadMultiple = false
179180
},

0 commit comments

Comments
 (0)