Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
d5cc95fe
Commit
d5cc95fe
authored
Jul 17, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级element-ui版本到2.13.2
parent
d29fe10b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
package.json
ruoyi-ui/package.json
+1
-1
index.js
ruoyi-ui/src/utils/index.js
+12
-10
No files found.
ruoyi-ui/package.json
View file @
d5cc95fe
...
...
@@ -44,7 +44,7 @@
"axios"
:
"0.18.1"
,
"clipboard"
:
"2.0.4"
,
"echarts"
:
"4.2.1"
,
"element-ui"
:
"2.13.
0
"
,
"element-ui"
:
"2.13.
2
"
,
"file-saver"
:
"2.0.1"
,
"js-beautify"
:
"^1.10.2"
,
"fuse.js"
:
"3.4.4"
,
...
...
ruoyi-ui/src/utils/index.js
View file @
d5cc95fe
...
...
@@ -124,19 +124,21 @@ export function param(json) {
* @returns {Object}
*/
export
function
param2Obj
(
url
)
{
const
search
=
url
.
split
(
'?'
)[
1
]
const
search
=
decodeURIComponent
(
url
.
split
(
'?'
)[
1
]).
replace
(
/
\+
/g
,
' '
)
if
(
!
search
)
{
return
{}
}
return
JSON
.
parse
(
'{"'
+
decodeURIComponent
(
search
)
.
replace
(
/"/g
,
'
\\
"'
)
.
replace
(
/&/g
,
'","'
)
.
replace
(
/=/g
,
'":"'
)
.
replace
(
/
\+
/g
,
' '
)
+
'"}'
)
const
obj
=
{}
const
searchArr
=
search
.
split
(
'&'
)
searchArr
.
forEach
(
v
=>
{
const
index
=
v
.
indexOf
(
'='
)
if
(
index
!==
-
1
)
{
const
name
=
v
.
substring
(
0
,
index
)
const
val
=
v
.
substring
(
index
+
1
,
v
.
length
)
obj
[
name
]
=
val
}
})
return
obj
}
/**
...
...
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