cee7dae9 by chentao

no message

1 parent c4b70c3f
...@@ -284,11 +284,13 @@ function submitForm(type) { ...@@ -284,11 +284,13 @@ function submitForm(type) {
284 alert(showForm.value.form?.type) 284 alert(showForm.value.form?.type)
285 const data = { 285 const data = {
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 alert('b');
290 data.type = showForm.value.form?.type.join('、') 291 data.type = showForm.value.form?.type.join('、')
291 } 292 }
293 alert('c');
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);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!