style: reformat code

This commit is contained in:
layhuts
2026-05-09 18:28:23 +08:00
parent 9c49f4bb1e
commit 08e4bb40b4
2 changed files with 5 additions and 7 deletions

View File

@@ -92,11 +92,8 @@ watch(
if (!cfg) return;
const keyField =
(gridOptions.value?.rowConfig as any)?.keyField || 'id';
const resolved = isBoolean(cfg)
? {keyField}
: {keyField, ...cfg};
const keyField = (gridOptions.value?.rowConfig as any)?.keyField || 'id';
const resolved = isBoolean(cfg) ? {keyField} : {keyField, ...cfg};
gridApi.viewedRowHelper = useViewedRow(resolved);
},
{immediate: true},