diff --git a/src/webapp/src/component/live-list/index.tsx b/src/webapp/src/component/live-list/index.tsx index 3ffffdfb..524e0522 100644 --- a/src/webapp/src/component/live-list/index.tsx +++ b/src/webapp/src/component/live-list/index.tsx @@ -42,7 +42,7 @@ class LiveList extends React.Component { //定时器 timer!: NodeJS.Timeout; - runStatus = { + runStatus: ColumnProps = { title: '运行状态', key: 'tags', dataIndex: 'tags', @@ -71,9 +71,21 @@ class LiveList extends React.Component { })} ), + sorter: (a: ItemData, b: ItemData) => { + const isRecordingA = a.tags.includes('录制中'); + const isRecordingB = b.tags.includes('录制中'); + if (isRecordingA === isRecordingB) { + return 0; + } else if (isRecordingA) { + return 1; + } else { + return -1; + } + }, + defaultSortOrder: 'descend', }; - runAction = { + runAction: ColumnProps = { title: '操作', key: 'action', dataIndex: 'listening',