mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-21 23:58:58 +08:00
fix: 修复一些代码warning(不影响实际运行)
This commit is contained in:
@@ -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';
|
||||
},
|
||||
},
|
||||
|
||||
@@ -46,7 +46,7 @@ const formOptions: VbenFormProps = {
|
||||
],
|
||||
};
|
||||
|
||||
const gridOptions: VxeGridProps<OperationLog> = {
|
||||
const gridOptions: VxeGridProps = {
|
||||
checkboxConfig: {
|
||||
// 高亮
|
||||
highlight: true,
|
||||
|
||||
Reference in New Issue
Block a user