Commit 5f40a4ff authored by wty's avatar wty

修复部分管理端的bug3

parent ec9ba067
...@@ -18,7 +18,7 @@ getMysql.then(Mysql => { ...@@ -18,7 +18,7 @@ getMysql.then(Mysql => {
const lastToolBoxId = queryToolBox[queryToolBox.length - 1].toolbox_id const lastToolBoxId = queryToolBox[queryToolBox.length - 1].toolbox_id
const params = [lastToolBoxId, type_id] const params = [lastToolBoxId, type_id]
!child_type_id ? params.push(null) : params.push(child_type_id) !!String(child_type_id).match(/[^0-9]/) ? params.push(null) : params.push(child_type_id)
const addRelation = await query(SQL2, params) const addRelation = await query(SQL2, params)
if (addRelation) res.send({success: true}) if (addRelation) res.send({success: true})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment