1
This commit is contained in:
@@ -201,6 +201,11 @@ export default {
|
|||||||
Vue.set(this.row, col.key, dayjs(defaultVal).toDate())
|
Vue.set(this.row, col.key, dayjs(defaultVal).toDate())
|
||||||
} else if (col.data_type === 'boolean') {
|
} else if (col.data_type === 'boolean') {
|
||||||
Vue.set(this.row, col.key, defaultVal === 1 || defaultVal === true)
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user