Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
高东东-金蝶建发
/
jf-yzj-supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eaa89736
authored
Aug 06, 2025
by
钟乾明
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u: 参数二级是对象的先解码再编码
parent
fcf8a01e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
0 deletions
package-lock.json
src/polyfill/request.js
package-lock.json
View file @
eaa89736
This diff could not be displayed because it is too large.
src/polyfill/request.js
View file @
eaa89736
...
@@ -72,6 +72,7 @@ function request (opt) {
...
@@ -72,6 +72,7 @@ function request (opt) {
var
val
=
urlParams
[
key
]
var
val
=
urlParams
[
key
]
if
(
isObject
(
val
))
{
if
(
isObject
(
val
))
{
val
=
JSON
.
stringify
(
val
)
val
=
JSON
.
stringify
(
val
)
val
=
decodeURIComponent
(
val
)
//有对象参数的先解码
val
=
encodeURIComponent
(
val
)
val
=
encodeURIComponent
(
val
)
}
else
if
(
/
[^\x
00-
\x
ff
]
/
.
test
(
val
))
{
}
else
if
(
/
[^\x
00-
\x
ff
]
/
.
test
(
val
))
{
val
=
encodeURIComponent
(
val
)
val
=
encodeURIComponent
(
val
)
...
...
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