Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
c86dc207
Commit
c86dc207
authored
Dec 17, 2020
by
RuoYi
Browse files
移除path-to-regexp正则匹配插件
parent
ecc7a8be
Changes
2
Hide whitespace changes
Inline
Side-by-side
ruoyi-ui/package.json
View file @
c86dc207
...
...
@@ -49,7 +49,6 @@
"js-cookie"
:
"2.2.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"nprogress"
:
"0.2.0"
,
"path-to-regexp"
:
"6.2.0"
,
"quill"
:
"1.3.7"
,
"screenfull"
:
"5.0.2"
,
"sortablejs"
:
"1.10.2"
,
...
...
ruoyi-ui/src/components/Breadcrumb/index.vue
View file @
c86dc207
...
...
@@ -10,8 +10,6 @@
</
template
>
<
script
>
import
pathToRegexp
from
'
path-to-regexp
'
export
default
{
data
()
{
return
{
...
...
@@ -49,18 +47,13 @@ export default {
}
return
name
.
trim
()
===
'
首页
'
},
pathCompile
(
path
)
{
const
{
params
}
=
this
.
$route
var
toPath
=
pathToRegexp
.
compile
(
path
)
return
toPath
(
params
)
},
handleLink
(
item
)
{
const
{
redirect
,
path
}
=
item
if
(
redirect
)
{
this
.
$router
.
push
(
redirect
)
return
}
this
.
$router
.
push
(
th
is
.
pathCompile
(
path
)
)
this
.
$router
.
push
(
pa
th
)
}
}
}
...
...
Write
Preview
Supports
Markdown
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