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: 请求模块中的 responseReturn 支持不完整 #5455

Closed
5 tasks done
gee1k opened this issue Jan 21, 2025 · 0 comments · Fixed by #5456
Closed
5 tasks done

Bug: 请求模块中的 responseReturn 支持不完整 #5455

gee1k opened this issue Jan 21, 2025 · 0 comments · Fixed by #5456

Comments

@gee1k
Copy link
Contributor

gee1k commented Jan 21, 2025

Version

Vben Admin V5

Describe the bug?

这俩 PR #5436 #5442 优化了 request client 的请求返回数据类型设定,但是好像扩展的 downloader 和 uploader 模块没有做相应的调整,不能支持 responseReturn 参数。

例如 request client 的 responseReturn 设置为 data 时,此时如果有下载接口,返回 Blob ,downloader 的 responseReturn 需要特殊设置为 body 以获取 Blob 对象。甚至如果需要获取下载接口的返回头中的文件名的话,downloader 的 responseReturn 需要特殊设置为 raw 以获取返回头信息。

Reproduction

N/A

System Info

System:
    OS: macOS 15.2
    CPU: (12) arm64 Apple M4 Pro
    Memory: 224.52 MB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - ~/.local/state/fnm_multishells/20928_1737440792441/bin/node
    npm: 10.9.0 - ~/.local/state/fnm_multishells/20928_1737440792441/bin/npm
    pnpm: 10.0.0 - /opt/homebrew/bin/pnpm
    Watchman: 2024.12.02.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 131.0.6778.266
    Safari: 18.2

Relevant log output

Validations

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

Successfully merging a pull request may close this issue.

1 participant