|
@@ -88,6 +88,8 @@ VueFilePond(
|
|
|
FilePondPluginFileValidateSize
|
|
FilePondPluginFileValidateSize
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+var imgFileIds = []
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -106,7 +108,7 @@ export default {
|
|
|
onload(response) {
|
|
onload(response) {
|
|
|
const resp = JSON.parse(response)
|
|
const resp = JSON.parse(response)
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|
|
|
- // imgFileIds.push(resp.data.imageFileId)
|
|
|
|
|
|
|
+ imgFileIds.push(resp.data.imageFileId)
|
|
|
} else {
|
|
} else {
|
|
|
if (resp.msg != null) {
|
|
if (resp.msg != null) {
|
|
|
this.message = '上传文件出现异常,请重新上传!' + resp.msg
|
|
this.message = '上传文件出现异常,请重新上传!' + resp.msg
|
|
@@ -119,6 +121,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
imagePost: {
|
|
imagePost: {
|
|
|
|
|
+ title: null,
|
|
|
|
|
+ imageFileIds: []
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -152,6 +156,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
publish() {
|
|
publish() {
|
|
|
|
|
+ this.imagePost.imageFileIds = imgFileIds
|
|
|
|
|
+ console.log(this.imagePost)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|