|
|
@@ -154,7 +154,9 @@ export default {
|
|
|
this.$msg("请上传图片")
|
|
|
return false
|
|
|
}
|
|
|
- this.form.cover = this.form.cover[0]
|
|
|
+ if(Array.isArray(this.form.cover)){
|
|
|
+ this.form.cover = this.form.cover[0]
|
|
|
+ }
|
|
|
let form = JSON.parse(JSON.stringify(this.form))
|
|
|
addWork({...form}).then(res => {
|
|
|
if(res.code == 1){
|