Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复useTable在total为0时的bug #10

Merged
merged 1 commit into from
Jul 2, 2023

Conversation

nullcache
Copy link
Contributor

如果total为0,tableObject 的 total 不会被更新,在搜索后即使没有结果,共x项结果还显示原来的数字

if ((res as unknown as ResponseType).total) {
  tableObject.total = (res as unknown as ResponseType).total as unknown as number
}

@YunaiV YunaiV merged commit 9f8e12d into yudaocode:master Jul 2, 2023
@nullcache nullcache deleted the bug/add-fix-useTable branch July 3, 2023 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants