diff --git a/apps/web-antd/src/views/monitor/online/index.vue b/apps/web-antd/src/views/monitor/online/index.vue index 9cb600e6..9cb2e50f 100644 --- a/apps/web-antd/src/views/monitor/online/index.vue +++ b/apps/web-antd/src/views/monitor/online/index.vue @@ -38,6 +38,10 @@ const gridOptions: VxeGridProps = { }, }, }, + scrollY: { + enabled: true, + gt: 0, + }, rowConfig: { isHover: true, keyField: 'tokenId', @@ -51,11 +55,24 @@ async function handleForceOffline(row: Recordable) { await forceLogout(row.tokenId); await tableApi.query(); } + +function onlineCount() { + return tableApi?.grid?.getData?.()?.length ?? 0; +}