This commit is contained in:
yuping
2023-02-19 18:23:12 +08:00
parent 7d7c939619
commit d0d7eb7dcf
9 changed files with 19 additions and 19 deletions

View File

@@ -450,7 +450,7 @@ function confirm() {
}
if (taskIndex.value === -1) {
const list = props.taskList
list.push({name: formData.value.examinationName, type: props.type, info: formData.value})
list.push({name: formData.value.examinationName, type: props.type, info: {...formData.value}})
} else {
const data = props.taskList[taskIndex.value]
data.name = formData.value.examinationName
@@ -474,7 +474,7 @@ function confirmouter() {
if (taskIndex.value === -1) {
const list = props.taskList
list.push({name: formDataOuter.value.examinationName, type: props.type, info: formDataOuter.value})
list.push({name: formDataOuter.value.examinationName, type: props.type, info: {...formDataOuter.value}})
} else {
const data = props.taskList[taskIndex.value]
data.name = formDataOuter.value.examinationName