From 42de3527b052f6cd66bd109c862d532bc253075f Mon Sep 17 00:00:00 2001 From: YongZL <1679963578@qq.com> Date: Tue, 31 Oct 2023 13:41:56 +0800 Subject: [PATCH] fix: ui --- src/lib/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 9788937..a7e3069 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -189,6 +189,8 @@ export function tryParse(data: any) { export const scrollToTop = () => { document.body.scrollTop = 0; document.documentElement.scrollTop = 0; + const table: any = document.querySelector('.ant-table-content'); + table.scrollLeft = 0; }; export const handleContentRender = (text: string, width: number) => {