修复保存是,会将null转为字符串存入
This commit is contained in:
@@ -28,7 +28,7 @@ const insert = ({table, form}) => {
|
|||||||
v = JSON.stringify(v)
|
v = JSON.stringify(v)
|
||||||
v = v.replace(/(')/g, "\\$1")
|
v = v.replace(/(')/g, "\\$1")
|
||||||
}
|
}
|
||||||
}
|
} else v = ''
|
||||||
return `${e}='${v}'`
|
return `${e}='${v}'`
|
||||||
})
|
})
|
||||||
sql = `update ${table} set ${arr.join(",")} where id='${form.id}'`
|
sql = `update ${table} set ${arr.join(",")} where id='${form.id}'`
|
||||||
|
|||||||
Reference in New Issue
Block a user