From cbd05fbc897b14977d40346d57831cd7520a2780 Mon Sep 17 00:00:00 2001 From: LiuHao Date: Fri, 19 May 2023 01:34:06 +0800 Subject: [PATCH] fix issues #I7657W --- .../src/main/resources/vm/vue/index-tree.vue.vm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm index dda1b4671..f35415b39 100644 --- a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm +++ b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm @@ -467,7 +467,7 @@ const handleUpdate = (row: ${BusinessName}VO) => { /** 提交按钮 */ const submitForm = () => { - ${businessName}FormRef.value.validate((valid: boolean) => { + ${businessName}FormRef.value.validate(async (valid: boolean) => { if (valid) { buttonLoading.value = true; #foreach ($column in $columns) @@ -476,9 +476,9 @@ const submitForm = () => { #end #end if (form.value.${pkColumn.javaField}) { - update${BusinessName}(form.value).finally(() => buttonLoading.value = false); + await update${BusinessName}(form.value).finally(() => buttonLoading.value = false); } else { - add${BusinessName}(form.value).finally(() => buttonLoading.value = false); + await add${BusinessName}(form.value).finally(() => buttonLoading.value = false); } proxy?.#[[$modal]]#.msgSuccess("操作成功"); dialog.visible = false;