diff --git a/pages/mine/myTracks.vue b/pages/mine/myTracks.vue index 8fc4a8a..a0fa2cd 100644 --- a/pages/mine/myTracks.vue +++ b/pages/mine/myTracks.vue @@ -170,11 +170,19 @@ export default { /** * 点击后判断是不是全选 */ + changeChecked(val) { + var opt = null; const isCheckedAll = this.trackList.every((key) => { - return key.___isDel == val.___isDel; + key.___isDel == val.___isDel; + opt = key.___isDel; + return opt; }); - this.allChecked = isCheckedAll; + if(opt){ + this.allChecked = isCheckedAll; + }else{ + this.allChecked = false; + } }, /**