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
c86dc207
Commit
c86dc207
authored
Dec 17, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除path-to-regexp正则匹配插件
parent
ecc7a8be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
ruoyi-ui/package.json
ruoyi-ui/package.json
+0
-1
ruoyi-ui/src/components/Breadcrumb/index.vue
ruoyi-ui/src/components/Breadcrumb/index.vue
+1
-8
No files found.
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
(
this
.
pathCompile
(
path
)
)
this
.
$router
.
push
(
path
)
}
}
}
...
...
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