From 3d7bf6dff3d1e2f12c4ecd0120ee110348ccdf49 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 21 十二月 2023 16:27:09 +0800 Subject: [PATCH] 1. 自评预检查功能修改中 --- src/composables/formConfirm.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/composables/formConfirm.js b/src/composables/formConfirm.js index dc295d5..ffe4b1b 100644 --- a/src/composables/formConfirm.js +++ b/src/composables/formConfirm.js @@ -92,9 +92,10 @@ }; // 鎻愪氦琛ㄥ崟 - const onSubmit = function () { - formRef.value.validate((valid) => { + const onSubmit = function (messageBox = true) { + formRef.value.validate(async (valid) => { if (valid) { + if (messageBox) { useMessageBoxTip({ confirmMsg: submit.msg, confirmTitle: submit.title, @@ -104,6 +105,10 @@ return res; } }); + } else { + await submit.do(); + submited(); + } } }); }; -- Gitblit v1.9.3