我的足迹里-全选的改动

master
夜良king 2021-12-24 16:41:43 +08:00
parent a8836744f6
commit b08c77b6c0
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;
}
},
/**