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 组件异常 #1463

Closed
3 of 4 tasks
zuihou opened this issue Dec 11, 2021 · 5 comments
Closed
3 of 4 tasks

Upload 组件异常 #1463

zuihou opened this issue Dec 11, 2021 · 5 comments

Comments

@zuihou
Copy link

zuihou commented Dec 11, 2021

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • 已阅读 文档.
  • 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
  • 已在 Issues 中搜索了相关的关键词
  • 不是 ant design vue 组件库的 Bug

描述 Bug

image

2.8.0 官方示例网站上,Upload 组件选择文件后,会显示文件列表。
2.8.0 之前的版本不会显示。

复现 Bug

vben 官网

@yonghui666
Copy link

请问大佬;这个upload组件;后端需要返回什么样的格式数据呢??虽然我上次成功了;但是回调函数拿不到后端返回的参数;

@Mr-LiuDC
Copy link

请问大佬;这个upload组件;后端需要返回什么样的格式数据呢??虽然我上次成功了;但是回调函数拿不到后端返回的参数;

@yonghui666 同问,请问你解决了吗?

@smilecode11
Copy link

同问呢, 上传成功, 保存不了, 应该是返回值不符合缘故.
image

@smilecode11
Copy link

smilecode11 commented May 22, 2023

我看了uploadModal 内部, 直接拿的 ret.data.url , 我们平时拿的(包括uploadAvatar)是 res.data.data.url
image

所以我在上传的时候区分了下
image

image

根据返回值也可以直接修改这里 问题也不大
image

@anncwb
Copy link
Collaborator

anncwb commented May 4, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@anncwb anncwb added the Stale label May 4, 2024
@anncwb anncwb closed this as completed May 11, 2024
@vbenjs vbenjs locked and limited conversation to collaborators Aug 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants