c4b70c3f by chentao

no message

1 parent 86dc5581
...@@ -282,10 +282,12 @@ function handleDel(row) { ...@@ -282,10 +282,12 @@ function handleDel(row) {
282 282
283 function submitForm(type) { 283 function submitForm(type) {
284 alert(showForm.value.form?.type) 284 alert(showForm.value.form?.type)
285 if(showForm.value.form?.type!="undefined"){
286 const data = { 285 const data = {
287 ...showForm.value.form, 286 ...showForm.value.form,
288 type: showForm.value.form?.type.join('、') 287 type: '';
288 }
289 if(showForm.value.form?.type!="undefined"){
290 data.type = showForm.value.form?.type.join('、')
289 } 291 }
290 const fun = showForm.value.form?.id ? editCourse : addCourse 292 const fun = showForm.value.form?.id ? editCourse : addCourse
291 fun(data).then(res => { 293 fun(data).then(res => {
...@@ -294,7 +296,6 @@ function submitForm(type) { ...@@ -294,7 +296,6 @@ function submitForm(type) {
294 getList() 296 getList()
295 showForm.value.open = false 297 showForm.value.open = false
296 }) 298 })
297 }
298 } 299 }
299 300
300 function closeDialog() { 301 function closeDialog() {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!