e21c59d6 by yzj

no message

1 parent 07f9007a
...@@ -275,8 +275,7 @@ function handleDel(row) { ...@@ -275,8 +275,7 @@ function handleDel(row) {
275 function submitForm(type) { 275 function submitForm(type) {
276 const data = { 276 const data = {
277 ...showForm.value.form, 277 ...showForm.value.form,
278 type: '', 278 type: ''
279 packId: 0
280 } 279 }
281 console.log(showForm.value.form); 280 console.log(showForm.value.form);
282 if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){ 281 if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){
...@@ -284,11 +283,6 @@ function submitForm(type) { ...@@ -284,11 +283,6 @@ function submitForm(type) {
284 } 283 }
285 else{ 284 else{
286 data.type = showForm.value.form?.type.join('、') 285 data.type = showForm.value.form?.type.join('、')
287 // 确保packId被保存
288 if (showForm.value.form?.packId) {
289 console.log(showForm.value.form.packId);
290 data.packId = showForm.value.form.packId
291 }
292 const fun = showForm.value.form?.id ? editCourse : addCourse 286 const fun = showForm.value.form?.id ? editCourse : addCourse
293 fun(data).then(res => { 287 fun(data).then(res => {
294 // console.log(res); 288 // 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!