This commit is contained in:
yanran200730
2022-02-28 10:20:35 +08:00
parent 2c8bdd3766
commit c3f983f2d8
2 changed files with 7 additions and 7 deletions

View File

@@ -201,12 +201,6 @@ export default {
back() {
uni.navigateBack({})
},
onChange(e) {
},
removeComponent(index) {
this.targetList.splice(index, 1)
},
toPreview() {
let {form, targetList} = this
@@ -236,6 +230,12 @@ export default {
uni.chooseImage(params)
},
removeComponent(index) {
this.$confirm('确定删除该题', '').then(() => {
this.targetList.splice(index, 1)
}).catch(() => {})
},
uploadFile(img) {
uni.showLoading({title: '上传中'})
let formData = new FormData()