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

Bug: 系统自带的请求当返回的数字比较大的时候,精度丢失。比如id是数字类型的且比较大时,数据不对 #5362

Open
5 tasks done
daipingfa opened this issue Jan 12, 2025 · 1 comment
Labels

Comments

@daipingfa
Copy link

Version

Vben Admin V5

Describe the bug?

Bug: 系统自带的请求当返回的数字比较大的时候,精度丢失。比如id是数字类型的且比较大时,数据不对

Reproduction

Bug: 系统自带的请求当返回的数字比较大的时候,精度丢失。比如id是数字类型的且比较大时,数据不对

System Info

Bug: 系统自带的请求当返回的数字比较大的时候,精度丢失。比如id是数字类型的且比较大时,数据不对

Relevant log output

Bug: 系统自带的请求当返回的数字比较大的时候,精度丢失。比如id是数字类型的且比较大时,数据不对

Validations

@mynetfan
Copy link
Collaborator

mynetfan commented Jan 12, 2025

大概是你的ID超出了整数范围。
这种特殊情况你得自己使用json-bigint之类的工具库对response进行处理,或者让后端接口返回时使用引号包裹ID,将它当作string来处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants