|
@@ -224,8 +224,16 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handlePictureRemove(file, fileUrlList) {
|
|
|
+ // var index = fileUrlList.indexOf(file)
|
|
|
+ // fileUrlList.splice(index, 1)
|
|
|
var index = fileUrlList.indexOf(file)
|
|
|
- fileUrlList.splice(index, 1)
|
|
|
+ this.$nextTick((e) => {
|
|
|
+ this.formData.fileUrlList.splice(index, 1)
|
|
|
+ })
|
|
|
+ const formDataFileUrlList = JSON.parse(JSON.stringify(this.formData.fileUrlList))
|
|
|
+ this.formData.fileUrlList = []
|
|
|
+ this.formData.fileUrlList = formDataFileUrlList
|
|
|
+ this.$forceUpdate()
|
|
|
},
|
|
|
uploadFile: function(param) {
|
|
|
const _this = this
|