no message
Showing
1 changed file
with
12 additions
and
11 deletions
| ... | @@ -281,18 +281,19 @@ function handleDel(row) { | ... | @@ -281,18 +281,19 @@ function handleDel(row) { |
| 281 | } | 281 | } |
| 282 | 282 | ||
| 283 | function submitForm(type) { | 283 | function submitForm(type) { |
| 284 | 284 | if(showForm.value.form?.type) | |
| 285 | const data = { | 285 | const data = { |
| 286 | ...showForm.value.form, | 286 | ...showForm.value.form, |
| 287 | type: showForm.value.form?.type.join('、') | 287 | type: showForm.value.form?.type.join('、') |
| 288 | } | ||
| 289 | const fun = showForm.value.form?.id ? editCourse : addCourse | ||
| 290 | fun(data).then(res => { | ||
| 291 | // console.log(res); | ||
| 292 | proxy.$modal.msgSuccess(res.msg); | ||
| 293 | getList() | ||
| 294 | showForm.value.open = false | ||
| 295 | }) | ||
| 288 | } | 296 | } |
| 289 | const fun = showForm.value.form?.id ? editCourse : addCourse | ||
| 290 | fun(data).then(res => { | ||
| 291 | // console.log(res); | ||
| 292 | proxy.$modal.msgSuccess(res.msg); | ||
| 293 | getList() | ||
| 294 | showForm.value.open = false | ||
| 295 | }) | ||
| 296 | } | 297 | } |
| 297 | 298 | ||
| 298 | function closeDialog() { | 299 | function closeDialog() { | ... | ... |
-
Please register or sign in to post a comment