@@ -20,7 +20,7 @@ function parseColumn<T>(columns: ColumnType<T>[]) {
const {dataIndex, title, render, align} = val;
if (render) {
return hepler.display({
- id: dataIndex?.toString() ?? 'id',
+ id: dataIndex!.toString(),
header: title?.toString(),
cell(props) {
return render(
@@ -53,6 +53,7 @@ export function useColumns(fetch: () => void) {
title: '操作',
width: SMALL_TABLE_WIDTH,
fixed: 'right',
+ dataIndex: 'id',
render(_, data) {
const {transmissionType, id} = data;