From f39a19d57c61f76dd563ffda8a2fc0d4820b0b9e Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 16 Mar 2022 18:20:09 +0800 Subject: [PATCH] BUG 28294 --- src/apps/AppSpecialPeople/add.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/apps/AppSpecialPeople/add.vue b/src/apps/AppSpecialPeople/add.vue index 613beaf3..5c186e8e 100644 --- a/src/apps/AppSpecialPeople/add.vue +++ b/src/apps/AppSpecialPeople/add.vue @@ -393,7 +393,7 @@ export default { } }, submit() { - let isValid = true,form = JSON.parse(JSON.stringify(this.formData)) + let isValid = true, form = JSON.parse(JSON.stringify(this.formData)) this.formDataList.map((item) => { item?.map((items) => { if (items.type == 'checkbox') { //多选 @@ -439,14 +439,12 @@ export default { }).then(res => { if (res?.code == 0) { this.$u.toast('提交成功') - setTimeout(() => { - uni.navigateBack({ - success: () => { - uni.$emit("selectType") - } - }) - }, 600) - } + uni.navigateBack({ + success: () => { + uni.$emit("selectType") + } + }) + } else this.$u.toast(res?.msg || "提交失败,请联系管理员") }) }, handleSelectResident(resident, item) {