lemon橪 2021-12-25 10:55:27 +08:00
commit c58f8d7831
1 changed files with 10 additions and 2 deletions

View File

@ -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;
}
},
/**