Skip to content

I tried to use the customRequest operation to override the default operation of the upload component and get a list of duplicate pictures. #4736

@noecs

Description

@noecs
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.8

Environment

Vue 3.1.5

Reproduction link

Edit on CodeSandbox

Steps to reproduce

我使用Upload组件进行上传,因为后端有签名相关,所以我使用customRequest覆盖Upload组件的默认上传配置。
我在cutsomRequest中进行自定义上传一张图片,上传之后的结果直接赋值给fileList

What is expected?

我的预期是,当我覆盖了customRequest,上传之后,修改fileList应该得到一个正确的图片列表。而不是我自定义的属性和Upload组件的File对象混杂的一个列表。

What is actually happening?

在图片列表却展示出来两个。第一张为上传中的占位,第二张为上传成功的图片。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions