no message
Showing
1 changed file
with
11 additions
and
8 deletions
| ... | @@ -286,16 +286,19 @@ function submitForm(type) { | ... | @@ -286,16 +286,19 @@ 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 | proxy.$modal.alert('搭建类型不能为空'); | ||
| 291 | } | ||
| 292 | else{ | ||
| 290 | data.type = showForm.value.form?.type.join('、') | 293 | data.type = showForm.value.form?.type.join('、') |
| 294 | const fun = showForm.value.form?.id ? editCourse : addCourse | ||
| 295 | fun(data).then(res => { | ||
| 296 | // console.log(res); | ||
| 297 | proxy.$modal.msgSuccess(res.msg); | ||
| 298 | getList() | ||
| 299 | showForm.value.open = false | ||
| 300 | }) | ||
| 291 | } | 301 | } |
| 292 | const fun = showForm.value.form?.id ? editCourse : addCourse | ||
| 293 | fun(data).then(res => { | ||
| 294 | // console.log(res); | ||
| 295 | proxy.$modal.msgSuccess(res.msg); | ||
| 296 | getList() | ||
| 297 | showForm.value.open = false | ||
| 298 | }) | ||
| 299 | } | 302 | } |
| 300 | 303 | ||
| 301 | function closeDialog() { | 304 | function closeDialog() { | ... | ... |
-
Please register or sign in to post a comment