zs 7 月之前
父节点
当前提交
38ed530321
共有 1 个文件被更改,包括 2 次插入2 次删除
  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)
   }