fix: 修复一些代码warning(不影响实际运行)

This commit is contained in:
dap
2025-09-05 10:50:52 +08:00
parent c3aeaf93a5
commit 7f08c11ab7
4 changed files with 2 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ const [BasicTable, tableApi] = useVbenVxeGrid({
gridOptions,
gridEvents: {
checkboxChange: (e) => {
const records = e.$grid.getCheckboxRecords();
const records = e.$grid?.getCheckboxRecords?.() ?? [];
canUnlock.value = records.length === 1 && records[0]!.status === '1';
},
},

View File

@@ -46,7 +46,7 @@ const formOptions: VbenFormProps = {
],
};
const gridOptions: VxeGridProps<OperationLog> = {
const gridOptions: VxeGridProps = {
checkboxConfig: {
// 高亮
highlight: true,