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
8ec492f7
Commit
8ec492f7
authored
Apr 13, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
子栏目刷新时title 掉的问题解决
parent
7f638e62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
pages/blog/index.vue
+20
-13
No files found.
pages/blog/index.vue
View file @
8ec492f7
...
...
@@ -93,7 +93,6 @@ export default {
},
created
()
{
this
.
dataGetBlogCategory
();
this
.
getLabelTitle
();
this
.
dataGetHotTagsList
();
this
.
dataGetHotBloggersList
();
this
.
handleArticleList
();
...
...
@@ -111,6 +110,8 @@ export default {
},
dataGetBlogCategory
(){
let
type
=
this
.
$route
.
query
.
type
;
this
.
typeList
.
map
((
val
)
=>
{
this
.
list
.
push
({
label
:
val
.
category
,
...
...
@@ -119,6 +120,9 @@ export default {
childList
:[],
title
:
val
.
categoryFull
})
if
(
val
.
categoryId
.
toString
()
===
type
){
this
.
labelTitle
=
val
.
categoryFull
||
val
.
category
}
})
this
.
typeList
.
map
(
async
(
val
,
index
)
=>
{
if
(
!
val
.
leaf
){
...
...
@@ -131,6 +135,9 @@ export default {
childId
:
val
.
categoryId
.
toString
(),
title
:
val
.
categoryFull
})
if
(
val
.
categoryId
.
toString
()
===
type
){
this
.
labelTitle
=
val
.
categoryFull
||
val
.
category
}
})
this
.
list
[
index
+
1
].
childList
=
childList
}
...
...
@@ -139,19 +146,19 @@ export default {
getLabelTitle
(){
let
type
=
this
.
$route
.
query
.
type
;
this
.
list
.
map
((
val
,
index
)
=>
{
this
.
list
.
map
((
val
,
index
)
=>
{
if
(
val
.
childList
){
val
.
childList
.
map
((
chVal
)
=>
{
if
(
chVal
.
childId
===
type
){
this
.
labelTitle
=
chVal
.
title
||
chVal
.
label
}
})
}
if
(
val
.
type
===
type
){
this
.
labelTitle
=
val
.
title
||
val
.
label
}
})
if
(
val
.
childList
){
val
.
childList
.
map
((
chVal
)
=>
{
if
(
chVal
.
childId
===
type
){
this
.
labelTitle
=
chVal
.
title
||
chVal
.
label
}
})
}
if
(
val
.
type
===
type
){
this
.
labelTitle
=
val
.
title
||
val
.
label
}
})
},
restartPagination
(){
if
(
process
.
browser
){
...
...
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