Commit 5d3ba7b1 by yanju

Merge branch 'fix-issue#15' into 'master'

修复博客置顶功能

See merge request pigbigbig/beyond-clouds-front!144
parents 7d2b04cf 72a4b8de
......@@ -123,7 +123,6 @@
},
created(){
this.dateGet2Info();
},
computed:{
cardState(){
......@@ -159,8 +158,7 @@
this.cardType = 2;
this.status = info.status;
this.praiseNum =info.praiseNum;
this.priority = info.priority||info.categoryPriority;
this.priority = this.$route.query.type==='all'?info.priority:info.categoryPriority;
}
if(this.info.projectId){
this.cardName = info.projectName;
......
......@@ -132,6 +132,9 @@ export default {
},
getLabelTitle(){
let type = this.$route.query.type;
if(type!=='all'){
type = Number(type)
}
this.list.map((val,index)=>{
if(val.type===type){
this.labelTitle = val.label
......
......@@ -122,6 +122,9 @@ export default {
},
getLabelTitle(){
let type = this.$route.query.type;
if(type!=='all'){
type = Number(type)
}
this.list.map((val,index)=>{
if(val.type===type){
this.labelTitle = val.label
......
......@@ -130,6 +130,9 @@ export default {
},
getLabelTitle(){
let type = this.$route.query.type;
if(type!=='all'){
type = Number(type)
}
this.list.map((val,index)=>{
if(val.type===type){
this.labelTitle = 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