修复歌曲切换方式无法取消勾选的问题

This commit is contained in:
lyswhut
2020-04-09 11:59:12 +08:00
parent 1ba68d67ba
commit bdc6b08234
3 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -52,7 +52,7 @@
<script>
import { mapMutations, mapGetters, mapActions } from 'vuex'
import { throttle, asyncSetArray, scrollTo, clipboardWriteText } from '../utils'
import { throttle, scrollTo, clipboardWriteText } from '../utils'
export default {
name: 'List',
data() {
@@ -283,7 +283,8 @@ export default {
this.isShowDownload = false
},
handleSelectAllData(isSelect) {
asyncSetArray(this.selectdData, isSelect ? [...this.list] : [])
this.selectdData = isSelect ? [...this.list] : []
// asyncSetArray(this.selectdData, isSelect ? [...this.list] : [])
},
resetSelect() {
this.isSelectAll = false