Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
7 years ago
Commit
de45d7e77d711807916e8a4471050bd6216d3b3a
1 parent
840d1be4
limit value
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
utils/parameter.js
utils/parameter.js
View file @
de45d7e
...
...
@@ -96,7 +96,9 @@ const fullParamToMinPath = (uri, params, newObj, delObj = {}) => {
});
_
.
forEach
(
transformKey
(
obj
,
true
),
(
value
,
key
)
=>
{
pathArr
.
push
(
`
$
{
key
}
$
{
value
}
`
);
if
(
value
)
{
pathArr
.
push
(
`
$
{
key
}
$
{
value
}
`
);
}
});
return
_
.
trimEnd
(
uri
,
'/'
)
+
'/'
+
_
.
sortBy
(
pathArr
).
join
(
'-'
);
...
...
Please
register
or
login
to post a comment