Explorar o código

Merge branch 'main' of http://git.cc-lotus.info/Information/cxyy-admin

lrf hai 7 meses
pai
achega
3459a27094
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/views/information/parts/platform/match.vue

+ 2 - 2
src/views/information/parts/platform/match.vue

@@ -399,7 +399,7 @@ const toSave = async () => {
   if (get(data, 'id')) res = await store.update({ ...data, ...other })
   else res = await store.create({ ...data, ...other })
   if ($checkRes(res, true)) {
-    if (res.data.id) match_id.value = res.data.id
+    if (res.data && res.data.id) match_id.value = res.data.id
     await toProcessSave()
     await search({ skip, limit })
     await toClose()
@@ -439,7 +439,7 @@ const toProcessSave = async () => {
   for (const val of processList.value) {
     const data = cloneDeep(val)
     delete data.sid
-    if (!val.match) val.match = match_id.value
+    if (!data.match) data.match = match_id.value
     if (get(data, 'id')) await processStore.update(data)
     else await processStore.create(data)
   }