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) => {