vue-uploader-solutions
vue-uploader-solutions copied to clipboard
请问一下,文件上传失败后再点击重试,文件状态为何是等待中
版本信息: "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
},
点击重试后,文件状态变为等待中而不是上传失败
文件的状态可能出问题了,具体的看不太出来。。