From 831696e275ae7159d632abe8ae62b12814d02ac8 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Fri, 13 Dec 2024 17:22:28 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=9C=A8=E7=BA=BF=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=20=E5=BC=80=E5=90=AF=E8=99=9A=E6=8B=9F?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/monitor/online/index.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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; +}