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

[upload] 升级 v0.23.1 后 onSuccess 事件缺少参数 response #1774

Closed
JohnnyZhangQiao opened this issue Sep 29, 2022 · 6 comments
Closed
Assignees
Labels
to be published to be published

Comments

@JohnnyZhangQiao
Copy link

tdesign-vue-next 版本

0.23.1

重现链接

No response

重现步骤

success和onSuccess钩子的入参变成了undefined
image

期望结果

返回参数类型context: SuccessContext

实际结果

context: undefined

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

👋 @JohnnyZhangQiao,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link
Contributor

github-actions bot commented Sep 29, 2022

♥️ 有劳 @PengYYYYY @chaishi 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @JohnnyZhangQiao

@chaishi
Copy link
Collaborator

chaishi commented Sep 29, 2022

我实际跑了一下,onSuccess 是有参数的。如果希望我们解决问题,不要只提供截图,请提供可复现问题的代码,不然就是浪费大家的时间

https://stackblitz.com/edit/angular-agjxxd?file=src%2Fdemo.vue

企业微信截图_7e12bd99-79a0-41a5-b91e-0b02e3445d31

@chaishi
Copy link
Collaborator

chaishi commented Sep 29, 2022

下面是组件代码,有实实在在的参数

企业微信截图_a7b9be0c-db78-4423-8fb8-1ca2925f0f62

@PengYYYYY PengYYYYY added the need more info need more information to resolve issue label Sep 29, 2022
@JohnnyZhangQiao
Copy link
Author

sorry我看错了,应该是response没有。因为我这边用到是post请求,需要拿到后端返回的data,v0.22.1没问题的,升级后就不行了。麻烦再看看
image

@chaishi
Copy link
Collaborator

chaishi commented Sep 29, 2022

resolved in #1776

@chaishi chaishi added to be published to be published and removed need more info need more information to resolve issue labels Sep 29, 2022
@chaishi chaishi changed the title [upload] 升级v0.23.1后有部分bug [upload] 升级 v0.23.1 后 onSuccess 事件缺少参数 response Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published to be published
Projects
None yet
Development

No branches or pull requests

3 participants