no message
Showing
1 changed file
with
3 additions
and
1 deletions
| ... | @@ -275,7 +275,8 @@ function handleDel(row) { | ... | @@ -275,7 +275,8 @@ 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 | ||
| 279 | } | 280 | } |
| 280 | if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){ | 281 | if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){ |
| 281 | proxy.$modal.alert('搭建类型不能为空'); | 282 | proxy.$modal.alert('搭建类型不能为空'); |
| ... | @@ -284,6 +285,7 @@ function submitForm(type) { | ... | @@ -284,6 +285,7 @@ function submitForm(type) { |
| 284 | data.type = showForm.value.form?.type.join('、') | 285 | data.type = showForm.value.form?.type.join('、') |
| 285 | // 确保packId被保存 | 286 | // 确保packId被保存 |
| 286 | if (showForm.value.form?.packId) { | 287 | if (showForm.value.form?.packId) { |
| 288 | console.log(showForm.value.form.packId); | ||
| 287 | data.packId = showForm.value.form.packId | 289 | data.packId = showForm.value.form.packId |
| 288 | } | 290 | } |
| 289 | const fun = showForm.value.form?.id ? editCourse : addCourse | 291 | const fun = showForm.value.form?.id ? editCourse : addCourse | ... | ... |
-
Please register or sign in to post a comment