Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
7f638e62
Commit
7f638e62
authored
Apr 13, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
博客栏目的全称
parent
07c8f024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
pages/blog/index.vue
+5
-12
No files found.
pages/blog/index.vue
View file @
7f638e62
...
...
@@ -112,21 +112,13 @@ export default {
dataGetBlogCategory
(){
this
.
typeList
.
map
((
val
)
=>
{
if
(
!
val
.
leaf
){
this
.
list
.
push
({
label
:
val
.
category
,
address
:
'/blog'
,
type
:
val
.
categoryId
.
toString
(),
childList
:[]
})
}
else
{
this
.
list
.
push
({
label
:
val
.
category
,
address
:
'/blog'
,
type
:
val
.
categoryId
.
toString
(),
childList
:[],
title
:
val
.
categoryFull
})
}
})
this
.
typeList
.
map
(
async
(
val
,
index
)
=>
{
if
(
!
val
.
leaf
){
...
...
@@ -137,6 +129,7 @@ export default {
label
:
val
.
category
,
address
:
'/blog'
,
childId
:
val
.
categoryId
.
toString
(),
title
:
val
.
categoryFull
})
})
this
.
list
[
index
+
1
].
childList
=
childList
...
...
@@ -151,12 +144,12 @@ export default {
if
(
val
.
childList
){
val
.
childList
.
map
((
chVal
)
=>
{
if
(
chVal
.
childId
===
type
){
this
.
labelTitle
=
chVal
.
label
this
.
labelTitle
=
chVal
.
title
||
chVal
.
label
}
})
}
if
(
val
.
type
===
type
){
this
.
labelTitle
=
val
.
label
this
.
labelTitle
=
val
.
title
||
val
.
label
}
})
},
...
...
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