Skip to content

Commit

Permalink
修复列表多选音源限制Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Aug 19, 2019
1 parent 90288da commit d4c88ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
11 changes: 2 additions & 9 deletions publish/changeLog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
### 新增
### 修复

- 新增搜索列表批量试听与下载功能
- 新增排行榜列表批量试听与下载功能
- 新增试听列表批量移除与下载功能
- 新增下载列表批量开始、暂停与移除功能

### 优化

- 优化歌曲切换机制
- 修复列表多选音源限制Bug
2 changes: 1 addition & 1 deletion src/renderer/views/Leaderboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
material-pagination(:count="info.total" :limit="info.limit" :page="info.page" @btn-click="handleTogglePage")
material-download-modal(:show="isShowDownload" :musicInfo="musicInfo" @select="handleAddDownload" @close="isShowDownload = false")
material-download-multiple-modal(:show="isShowDownloadMultiple" :list="selectdData" @select="handleAddDownloadMultiple" @close="isShowDownloadMultiple = false")
material-flow-btn(:show="isShowEditBtn" :remove-btn="false" @btn-click="handleFlowBtnClick")
material-flow-btn(:show="isShowEditBtn && (source == 'kw' || (!isAPITemp && source == 'tx'))" :remove-btn="false" @btn-click="handleFlowBtnClick")
</template>

<script>
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/views/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ export default {
this.selectdData = []
},
handleAddDownloadMultiple(type) {
this.createDownloadMultiple({ list: [...this.selectdData], type })
const list = this.setting.apiSource == 'temp' ? this.selectdData.filter(s => s.source == 'kw') : [...this.selectdData]
this.createDownloadMultiple({ list, type })
this.resetSelect()
this.isShowDownloadMultiple = false
},
Expand Down

0 comments on commit d4c88ed

Please sign in to comment.