From b08c77b6c05658e4bea8d1ebce5c2b006f817132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E8=89=AFking?= <2244255345@qq.com> Date: Fri, 24 Dec 2021 16:41:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E8=B6=B3=E8=BF=B9=E9=87=8C-?= =?UTF-8?q?=E5=85=A8=E9=80=89=E7=9A=84=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/myTracks.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; + } }, /**