016051c7 by yzj

no message

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