Skip to content

Commit

Permalink
Update popup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xifangczy committed Jul 30, 2024
1 parent 8bb2f12 commit f5ce7da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,11 @@ $('#AllCopy').click(function () {
// 全选 反选
$('#AllSelect, #invertSelection').click(function () {
checkboxState = !checkboxState;
const checked = this.id == "AllSelect";
let checked = false;
if(this.id == "AllSelect"){
checked = true;
checkboxState = true;
}
getData().forEach(function (data) {
data.checked = checked ? checked : !data.checked;
});
Expand Down

0 comments on commit f5ce7da

Please sign in to comment.