Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
ruoyi-ui/package.json
ruoyi-ui/package.json
+1
-1
ruoyi-ui/src/utils/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