From aa1f56d5ef2d48b980a2fab3e88379efbe09b0d1 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 26 十二月 2023 17:04:27 +0800
Subject: [PATCH] 评估任务模块新增任务状态管理逻辑

---
 src/composables/formConfirm.js |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/composables/formConfirm.js b/src/composables/formConfirm.js
index fcd2828..0bb274c 100644
--- a/src/composables/formConfirm.js
+++ b/src/composables/formConfirm.js
@@ -26,8 +26,7 @@
   // });
 
   //琛ㄥ崟鍐呭
-  const formObj = reactive(defaultForm ? defaultForm : {});
-  // const formObj = reactive({});
+  const formObj = ref(defaultForm ? defaultForm : {});
   let formObjClone = useCloned(formObj, { manual: true });
   //琛ㄥ崟缁勪欢寮曠敤
   const formRef = ref(null);
@@ -97,15 +96,15 @@
     formRef.value.validate(async (valid) => {
       if (valid) {
         if (messageBox) {
-        useMessageBoxTip({
-          confirmMsg: submit.msg,
-          confirmTitle: submit.title,
-          onConfirm: async () => {
-            const res = await submit.do();
-            submited();
-            return res;
-          }
-        });
+          useMessageBoxTip({
+            confirmMsg: submit.msg,
+            confirmTitle: submit.title,
+            onConfirm: async () => {
+              const res = await submit.do();
+              submited();
+              return res;
+            }
+          });
         } else {
           await submit.do();
           submited();

--
Gitblit v1.9.3