Skip to content

Commit

Permalink
fix: ui
Browse files Browse the repository at this point in the history
  • Loading branch information
YongZL committed Oct 31, 2023
1 parent f9c4001 commit 42de352
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ export function tryParse<T>(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) => {
Expand Down

0 comments on commit 42de352

Please sign in to comment.