016051c7 by yzj

no message

1 parent 8e36b466
...@@ -256,7 +256,7 @@ function handleEdit (row) { ...@@ -256,7 +256,7 @@ function handleEdit (row) {
256 form: { 256 form: {
257 ...row, 257 ...row,
258 type: row.type.split('、'), 258 type: row.type.split('、'),
259 canPack: row.canPack || '0' // 确保canPack有值,如果为null或undefined则默认为'0' 259 canPack: row.canPack ? String(row.canPack) : '0' // 将数字转换为字符串
260 } 260 }
261 } 261 }
262 console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据 262 console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据
...@@ -290,7 +290,6 @@ function submitForm(type) { ...@@ -290,7 +290,6 @@ function submitForm(type) {
290 ...showForm.value.form, 290 ...showForm.value.form,
291 type: '' 291 type: ''
292 } 292 }
293 console.log(showForm.value.form);
294 if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){ 293 if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){
295 proxy.$modal.alert('搭建类型不能为空'); 294 proxy.$modal.alert('搭建类型不能为空');
296 } 295 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!