还原处理
This commit is contained in:
@@ -39,6 +39,7 @@ const insert = ({table, form}) => {
|
|||||||
cols.push(e)
|
cols.push(e)
|
||||||
if (typeof v == "object") {
|
if (typeof v == "object") {
|
||||||
v = JSON.stringify(v)
|
v = JSON.stringify(v)
|
||||||
|
v = v.replace(/(')/g, "\\$1")
|
||||||
}
|
}
|
||||||
arr.push(`'${v}'`)
|
arr.push(`'${v}'`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user