mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
fix add data error when item data type is number
This commit is contained in:
parent
5f29ff296b
commit
19ab7cb21f
@ -38,7 +38,7 @@ export default class extends Parse {
|
||||
for(let key in data){
|
||||
let val = data[key];
|
||||
val = this.parseValue(val);
|
||||
if (think.isString(val)) {
|
||||
if (think.isString(val) || think.isBoolean(val) || think.isNumber(val)) {
|
||||
values.push(val);
|
||||
fields.push(this.parseKey(key));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user