edc06d89 by chentao

no message

1 parent 6b639f3b
......@@ -286,9 +286,11 @@ function submitForm(type) {
...showForm.value.form,
type: ''
}
if(showForm.value.form?.type!==undefined){
data.type = showForm.value.form?.type.join('、')
if(showForm.value.form?.type===undefined){
proxy.$modal.alert('搭建类型不能为空');
}
else{
data.type = showForm.value.form?.type.join('、')
const fun = showForm.value.form?.id ? editCourse : addCourse
fun(data).then(res => {
// console.log(res);
......@@ -296,6 +298,7 @@ function submitForm(type) {
getList()
showForm.value.open = false
})
}
}
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!