huangxw hai 4 meses
pai
achega
74cb9a61cb
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      src/views/training/ptpl/edit/index.vue

+ 6 - 2
src/views/training/ptpl/edit/index.vue

@@ -67,8 +67,12 @@ const activated = (item: any) => {
     curEvent.value = item;
 };
 const selectItem = (item: any) => {
-    form.value = { ...item };
-    curEvent.value = null;
+    form.value.id = null;
+    setTimeout(() => {
+        form.value = { ...item };
+        curEvent.value = null;
+    }, 100);
+
 };
 const saveEevent = async (item: any) => {
     if (!form.value?.events || !form.value?.events.length) return;