edc06d89 by chentao

no message

1 parent 6b639f3b
......@@ -286,16 +286,19 @@ function submitForm(type) {
...showForm.value.form,
type: ''
}
if(showForm.value.form?.type!==undefined){
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);
proxy.$modal.msgSuccess(res.msg);
getList()
showForm.value.open = false
})
}
const fun = showForm.value.form?.id ? editCourse : addCourse
fun(data).then(res => {
// console.log(res);
proxy.$modal.msgSuccess(res.msg);
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!