no message
Showing
1 changed file
with
4 additions
and
2 deletions
| ... | @@ -284,11 +284,13 @@ function submitForm(type) { | ... | @@ -284,11 +284,13 @@ function submitForm(type) { |
| 284 | alert(showForm.value.form?.type) | 284 | alert(showForm.value.form?.type) |
| 285 | const data = { | 285 | const data = { |
| 286 | ...showForm.value.form, | 286 | ...showForm.value.form, |
| 287 | type: ''; | 287 | type: '' |
| 288 | } | 288 | } |
| 289 | if(showForm.value.form?.type!="undefined"){ | 289 | if(showForm.value.form?.type!=='undefined'){ |
| 290 | alert('b'); | ||
| 290 | data.type = showForm.value.form?.type.join('、') | 291 | data.type = showForm.value.form?.type.join('、') |
| 291 | } | 292 | } |
| 293 | alert('c'); | ||
| 292 | const fun = showForm.value.form?.id ? editCourse : addCourse | 294 | const fun = showForm.value.form?.id ? editCourse : addCourse |
| 293 | fun(data).then(res => { | 295 | fun(data).then(res => { |
| 294 | // console.log(res); | 296 | // console.log(res); | ... | ... |
-
Please register or sign in to post a comment