Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
14eef644
Commit
14eef644
authored
Apr 21, 2018
by
qingming
Committed by
杨奕
Apr 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Breadcrumb: code optimization (#10817)
parent
b414efdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
packages/breadcrumb/src/breadcrumb-item.vue
packages/breadcrumb/src/breadcrumb-item.vue
+3
-4
No files found.
packages/breadcrumb/src/breadcrumb-item.vue
View file @
14eef644
...
...
@@ -29,14 +29,13 @@
mounted
()
{
this
.
separator
=
this
.
elBreadcrumb
.
separator
;
this
.
separatorClass
=
this
.
elBreadcrumb
.
separatorClass
;
let
self
=
this
;
if
(
this
.
to
)
{
let
link
=
this
.
$refs
.
link
;
let
to
=
this
.
to
;
link
.
setAttribute
(
'
role
'
,
'
link
'
);
link
.
addEventListener
(
'
click
'
,
_
=>
{
let
to
=
this
.
to
;
self
.
replace
?
self
.
$router
.
replace
(
to
)
:
self
.
$router
.
push
(
to
);
this
.
replace
?
this
.
$router
.
replace
(
to
)
:
this
.
$router
.
push
(
to
);
});
}
}
...
...
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