edc06d89 by chentao

no message

1 parent 6b639f3b
...@@ -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() {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!