Showing
1 changed file
with
6 additions
and
2 deletions
| ... | @@ -413,9 +413,13 @@ const confirmAddTarget = async (formFields) => { | ... | @@ -413,9 +413,13 @@ const confirmAddTarget = async (formFields) => { |
| 413 | } | 413 | } |
| 414 | } else { | 414 | } else { |
| 415 | // 新增成功,更新本地列表 | 415 | // 新增成功,更新本地列表 |
| 416 | - targetList.value.push({ | 416 | + const newTarget = { |
| 417 | ...formData, | 417 | ...formData, |
| 418 | - }) | 418 | + has_confirmed: true // 新增的对象默认已确认 |
| 419 | + } | ||
| 420 | + targetList.value.push(newTarget) | ||
| 421 | + // 默认勾选新增的对象 | ||
| 422 | + selectedTargets.value.push(newTarget) | ||
| 419 | showToast('新增成功') | 423 | showToast('新增成功') |
| 420 | } | 424 | } |
| 421 | 425 | ... | ... |
-
Please register or login to post a comment