e21c59d6 by yzj

no message

1 parent 07f9007a
......@@ -275,8 +275,7 @@ function handleDel(row) {
function submitForm(type) {
const data = {
...showForm.value.form,
type: '',
packId: 0
type: ''
}
console.log(showForm.value.form);
if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){
......@@ -284,11 +283,6 @@ function submitForm(type) {
}
else{
data.type = showForm.value.form?.type.join('、')
// 确保packId被保存
if (showForm.value.form?.packId) {
console.log(showForm.value.form.packId);
data.packId = showForm.value.form.packId
}
const fun = showForm.value.form?.id ? editCourse : addCourse
fun(data).then(res => {
// 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!