-
Notifications
You must be signed in to change notification settings - Fork 483
Open
Description
版本信息:
"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
},
Metadata
Metadata
Assignees
Labels
No labels

