Commit 7f638e62 by yanju

博客栏目的全称

parent 07c8f024
......@@ -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
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment