Skip to content

请问一下,文件上传失败后再点击重试,文件状态为何是等待中 #49

@purple910

Description

@purple910

版本信息:
"vue": "^2.5.17",
"vue-simple-uploader": "^0.7.6",

// 每个文件传输给后端之后,返回的信息
onFileSuccess(rootFile, file, response, chunk) {
let res = JSON.parse(response)
if (res.code == 10000) {
// 服务端自定义的错误(即http状态码为200,但是是错误的情况),这种错误是Uploader无法拦截的
this.error(res.message)
// 文件状态设为“失败”
// this.statusSet(file.id, 'failed')
file.completed = false
file.error = true
file.waiting = false
file.chunks = []
file.testChunks = false
}
this.fileList = this.$refs['uploader'].fileList
},

image
点击重试后,文件状态变为等待中而不是上传失败
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions