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组件,error方法没有像table组件那样,返回状态码,例如401 #2048

Closed
4 tasks done
1051897274 opened this issue Jun 21, 2024 · 3 comments · Fixed by #2151
Closed
4 tasks done
Labels
enhancement 改进或增强

Comments

@1051897274
Copy link

议题条件

  • 我确认已查看官方使用文档:https://layui.dev ,但没有找到相关解决方案。
  • 我确认已在 Issues 中搜索过类似的问题,但没有找到相关解决方案。
  • 我已仔细阅读: 🍀 Layui Issue 贡献指南

议题类型

功能请求

使用版本

v2.9.13

问题描述

upload组件,error方法没有像table组件那样,返回状态码,例如401,希望能把状态码返回,像table一样

业务代码

截图补充

No response

浏览器

Edge

演示地址

No response

友好承诺

  • 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。
@Sight-wcg Sight-wcg added the enhancement 改进或增强 label Jun 22, 2024
@yswang1024
Copy link

yswang1024 commented Aug 6, 2024

确实,我也遇到了,长时间不操作,上传的时候session超时,处理起来比较棘手,最后在上传之前手动调用一次无关的后台地址去验证是否401

@1051897274
Copy link
Author

确实,我也遇到了,长时间不操作,上传的时候session超时,处理起来比较棘手,最后在上传之前手动调用一次无关的后台地址去验证是否401

加入了改进和增强,但是大佬目前一直还没时间改进处理

@sentsim
Copy link
Collaborator

sentsim commented Aug 6, 2024

error 返回的参数确实有点尴尬,没设计好。不得不新增第四个参数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 改进或增强
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants