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: 请求后端接口时是否可以像2.0版本一样在api中设置参数isTransformResponse确定要不要格式化返回的数据 #5432

Closed
5 tasks done
nbzhugq opened this issue Jan 18, 2025 · 1 comment · Fixed by #5436

Comments

@nbzhugq
Copy link

nbzhugq commented Jan 18, 2025

Version

Vben Admin V5

Describe the bug?

Bug: 请求后端接口时是否可以像2.0版本一样在api中设置参数isTransformResponse确定要不要格式化返回的数据

Reproduction

Bug: 请求后端接口时是否可以像2.0版本一样在api中设置参数isTransformResponse确定要不要格式化返回的数据

System Info

请求后端接口时是否可以像2.0版本一样在api中设置参数化isTransformResponse来

Relevant log output

Validations

@mynetfan
Copy link
Collaborator

使用 responseReturn 选项设置返回类型。
raw = 完整的response(包括status、headers、data)
body = 返回response的数据部分,不包含status、headers等
data = 只返回数据部分的data节点,这是当前的默认方式

@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants