|
|
@ -57,14 +57,14 @@ export default { |
|
|
|
}, |
|
|
|
handleSuccess(response, file, fileList) { |
|
|
|
if (response === 'success') { |
|
|
|
this.$notify({ |
|
|
|
title: '执行成功', |
|
|
|
this.$message({ |
|
|
|
message: '执行成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2500 |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
|
title: response, |
|
|
|
this.$message({ |
|
|
|
message: response, |
|
|
|
type: 'error', |
|
|
|
duration: 0 |
|
|
|
}) |
|
|
@ -72,8 +72,8 @@ export default { |
|
|
|
}, |
|
|
|
handleError(e, file, fileList) { |
|
|
|
const msg = JSON.parse(e.message) |
|
|
|
this.$notify({ |
|
|
|
title: msg.message, |
|
|
|
this.$message({ |
|
|
|
message: msg.message, |
|
|
|
type: 'error', |
|
|
|
duration: 0 |
|
|
|
}) |
|
|
|