|
|
@ -191,7 +191,7 @@ export default { |
|
|
|
e.preventDefault(); |
|
|
|
this.form.validateFieldsAndScroll(async (err, values) => { |
|
|
|
if (!err) { |
|
|
|
if (this.fileList.length > 0) { |
|
|
|
|
|
|
|
try { |
|
|
|
this.picId = this.fileList[0]; |
|
|
|
const params = { |
|
|
@ -218,9 +218,7 @@ export default { |
|
|
|
} catch (error) { |
|
|
|
this.$message.error(error || '添加失败'); |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message.error('请上传图片'); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|