Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
Overview
Overview
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
fengzhaoyu
mingPayPc
Commits
54e80fd3
Commit
54e80fd3
authored
5 years ago
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
router 判断
parent
8505a0aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Home.vue
src/components/common/Home.vue
+2
-2
No files found.
src/components/common/Home.vue
View file @
54e80fd3
...
...
@@ -47,7 +47,7 @@ export default {
created
()
{
let
that
=
this
this
.
title
=
this
.
$route
.
meta
.
title
?
this
.
$route
.
meta
.
title
.
split
(
'/'
)
:
''
this
.
defaultSelectedKeys
=
this
.
$route
.
matched
[
2
].
name
?
this
.
$route
.
matched
[
2
].
name
:
''
this
.
defaultSelectedKeys
=
this
.
$route
.
matched
[
2
]
&&
this
.
$route
.
matched
[
2
]
.
name
?
this
.
$route
.
matched
[
2
].
name
:
''
let
data
=
{
item
:
'e-card'
}
...
...
@@ -60,7 +60,7 @@ export default {
watch
:
{
$route
(
to
,
from
)
{
this
.
title
=
to
.
meta
.
title
.
split
(
'/'
)
this
.
defaultSelectedKeys
=
this
.
$route
.
matched
[
1
].
name
?
this
.
$route
.
matched
[
1
].
name
:
''
this
.
defaultSelectedKeys
=
this
.
$route
.
matched
[
1
]
&&
this
.
$route
.
matched
[
1
].
name
?
this
.
$route
.
matched
[
1
].
name
:
''
}
},
computed
:
{},
...
...
This diff is collapsed.
Click to expand it.
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