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