chore: 更新eslint相关依赖并作兼容处理

This commit is contained in:
xiaoxian521
2025-04-09 05:49:15 +08:00
parent 92cfa9763b
commit 583feae7b7
23 changed files with 210 additions and 192 deletions

View File

@@ -73,7 +73,7 @@ export function useColumns(selectRef: Ref, formRef: Ref, tableRef: Ref) {
const onSearch = () => {
tableData.value = cloneTableData;
if (!isAllEmpty(searchForm.sexValue)) {
let sex = sexOptions
const sex = sexOptions
.map(sex => sex.value === Number(searchForm.sexValue) && sex.label)
.filter(Boolean)[0];
tableData.value = tableData.value.filter(data => data.sex === sex);