Showing
1 changed file
with
2 additions
and
5 deletions
... | ... | @@ -142,11 +142,8 @@ |
142 | 142 | const rowSelection = { |
143 | 143 | onChange: (_, selectedRows: any[]) => { |
144 | 144 | batchDeleteIds.value = selectedRows.map((it) => it.id) as never as any; |
145 | - if (batchDeleteIds.value.length > 0) { | |
146 | - setStatusIsFalse(); | |
147 | - } else { | |
148 | - setStatusIsTrue(); | |
149 | - } | |
145 | + if (batchDeleteIds.value.length > 0) setStatusIsFalse(); | |
146 | + else setStatusIsTrue(); | |
150 | 147 | }, |
151 | 148 | getCheckboxProps: (record) => ({ |
152 | 149 | disabled: record.state === 1, | ... | ... |