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]: requet的error里面的data类型不正确 #376

Closed
honghuangdc opened this issue Apr 2, 2024 · 0 comments
Closed

[Bug]: requet的error里面的data类型不正确 #376

honghuangdc opened this issue Apr 2, 2024 · 0 comments

Comments

@honghuangdc
Copy link
Member

软件版本

nodev18.19.0

运行环境

MacOS

运行架构

ARM [64] (别名:AArch64 / ARMv8)

重现步骤

const { error, data } = await fetchLogin();
error?.response?.data

期望的结果是什么?

error?.response?.data 的类型为预设的 ResponseData 类型

实际的结果是什么?

error?.response?.data 的类型为 Api.ApiAuth.LoginToken

日志记录(可选)

No response

补充说明(可选)

No response

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

No branches or pull requests

1 participant