no message
Showing
1 changed file
with
5 additions
and
2 deletions
| ... | @@ -286,9 +286,11 @@ function submitForm(type) { | ... | @@ -286,9 +286,11 @@ function submitForm(type) { |
| 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 | data.type = showForm.value.form?.type.join('、') | 290 | proxy.$modal.alert('搭建类型不能为空'); |
| 291 | } | 291 | } |
| 292 | else{ | ||
| 293 | data.type = showForm.value.form?.type.join('、') | ||
| 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); |
| ... | @@ -296,6 +298,7 @@ function submitForm(type) { | ... | @@ -296,6 +298,7 @@ function submitForm(type) { |
| 296 | getList() | 298 | getList() |
| 297 | showForm.value.open = false | 299 | showForm.value.open = false |
| 298 | }) | 300 | }) |
| 301 | } | ||
| 299 | } | 302 | } |
| 300 | 303 | ||
| 301 | function closeDialog() { | 304 | function closeDialog() { | ... | ... |
-
Please register or sign in to post a comment