no message
Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -282,6 +282,10 @@ function submitForm(type) { | ... | @@ -282,6 +282,10 @@ function submitForm(type) { |
| 282 | } | 282 | } |
| 283 | else{ | 283 | else{ |
| 284 | data.type = showForm.value.form?.type.join('、') | 284 | data.type = showForm.value.form?.type.join('、') |
| 285 | // 确保packId被保存 | ||
| 286 | if (showForm.value.form?.packId) { | ||
| 287 | data.packId = showForm.value.form.packId | ||
| 288 | } | ||
| 285 | const fun = showForm.value.form?.id ? editCourse : addCourse | 289 | const fun = showForm.value.form?.id ? editCourse : addCourse |
| 286 | fun(data).then(res => { | 290 | fun(data).then(res => { |
| 287 | // console.log(res); | 291 | // console.log(res); | ... | ... |
-
Please register or sign in to post a comment