From a900d30a0355f3244d74341f3da6af857a93b5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Wed, 19 Apr 2023 19:52:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E6=9C=AA=E9=AA=8C=E8=AF=81=E9=80=9A=E8=BF=87=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E4=B8=8D=E8=83=BD=E5=9C=A8=E7=BB=A7=E7=BB=AD?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/gen/editTable.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/tool/gen/editTable.vue b/src/views/tool/gen/editTable.vue index 2d73e6a..3a64a72 100644 --- a/src/views/tool/gen/editTable.vue +++ b/src/views/tool/gen/editTable.vue @@ -224,15 +224,19 @@ function submitForm() { colNum: info.value.colNum, generateRepo: info.value.generateRepo } - console.log('genForm', genTable) - updateGenTable(genTable).then((res) => { - proxy.$modal.msgSuccess(res.msg) - if (res.code === 200) { - close() - } - }) + updateGenTable(genTable) + .then((res) => { + proxy.$modal.msgSuccess(res.msg) + if (res.code === 200) { + close() + } + }) + .catch(() => { + submitLoading.value = false + }) } else { + submitLoading.value = false proxy.$modal.msgError('表单校验未通过,请重新检查提交内容') } })