81d4b55b by yzj

no message

1 parent 693c269e
......@@ -275,7 +275,8 @@ function handleDel(row) {
function submitForm(type) {
const data = {
...showForm.value.form,
type: ''
type: '',
packId: 0
}
if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){
proxy.$modal.alert('搭建类型不能为空');
......@@ -284,6 +285,7 @@ function submitForm(type) {
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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!