a889da9f by chentao

no message

1 parent 636bd61a
......@@ -281,18 +281,19 @@ function handleDel(row) {
}
function submitForm(type) {
const data = {
...showForm.value.form,
type: showForm.value.form?.type.join('、')
if(showForm.value.form?.type)
const data = {
...showForm.value.form,
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!