8e36b466 by yzj

no message

1 parent 25c30d22
...@@ -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 || '0' // 确保canPack有值,如果为null或undefined则默认为'0'
260 } 260 }
261 } 261 }
262 console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据 262 console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据
...@@ -269,7 +269,7 @@ function btn_add () { ...@@ -269,7 +269,7 @@ function btn_add () {
269 ...showForm.value, 269 ...showForm.value,
270 open: true, 270 open: true,
271 form: { 271 form: {
272 canPack: 0 // 设置默认值 272 canPack: '0' // 设置默认值
273 } 273 }
274 } 274 }
275 } 275 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!