|
|
@@ -176,8 +176,13 @@ export default {
|
|
|
this.$refs.upload.submit()
|
|
|
},
|
|
|
onError (res, file, fileList) {
|
|
|
- console.log(res)
|
|
|
- this.$message.error(res.msg)
|
|
|
+ const error = JSON.parse(res.message)
|
|
|
+ this.$confirm(error.msg, {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$emit('error')
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|