diff --git a/package.json b/package.json index 323b7692..e2b06e9f 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "postcss-comment": "^2.0.0", "query-string": "^7.1.1", "uview-ui": "^1.8.4", - "vconsole": "^3.11.2", + "vconsole": "^3.12.1", "vue-template-compiler": "^2.6.11" }, "browserslist": [ diff --git a/src/apps/AppAskForm/AddForm.vue b/src/apps/AppAskForm/AddForm.vue index d6528359..ef73eea1 100644 --- a/src/apps/AppAskForm/AddForm.vue +++ b/src/apps/AppAskForm/AddForm.vue @@ -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()