Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Dui123
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
王天宇
Dui123
Commits
5f40a4ff
Commit
5f40a4ff
authored
Nov 08, 2021
by
wty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分管理端的bug3
parent
ec9ba067
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
add.js
server/routes/add.js
+1
-1
No files found.
server/routes/add.js
View file @
5f40a4ff
...
@@ -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
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment