This commit is contained in:
张成
2025-11-19 15:39:23 +08:00
parent 9b5f89aa10
commit cdd78aa057

View File

@@ -201,6 +201,11 @@ export default {
Vue.set(this.row, col.key, dayjs(defaultVal).toDate())
} else if (col.data_type === 'boolean') {
Vue.set(this.row, col.key, defaultVal === 1 || defaultVal === true)
} else {
// 如果值没有填写undefined 或 null不设置为空字符串
if (defaultVal !== undefined && defaultVal !== null) {
Vue.set(this.row, col.key, defaultVal)
}
}
})
},