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 @@ ...@@ -123,7 +123,6 @@
}, },
created(){ created(){
this.dateGet2Info(); this.dateGet2Info();
}, },
computed:{ computed:{
cardState(){ cardState(){
...@@ -159,8 +158,7 @@ ...@@ -159,8 +158,7 @@
this.cardType = 2; this.cardType = 2;
this.status = info.status; this.status = info.status;
this.praiseNum =info.praiseNum; 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){ if(this.info.projectId){
this.cardName = info.projectName; this.cardName = info.projectName;
......
...@@ -132,6 +132,9 @@ export default { ...@@ -132,6 +132,9 @@ export default {
}, },
getLabelTitle(){ getLabelTitle(){
let type = this.$route.query.type; let type = this.$route.query.type;
if(type!=='all'){
type = Number(type)
}
this.list.map((val,index)=>{ this.list.map((val,index)=>{
if(val.type===type){ if(val.type===type){
this.labelTitle = val.label this.labelTitle = val.label
......
...@@ -122,6 +122,9 @@ export default { ...@@ -122,6 +122,9 @@ export default {
}, },
getLabelTitle(){ getLabelTitle(){
let type = this.$route.query.type; let type = this.$route.query.type;
if(type!=='all'){
type = Number(type)
}
this.list.map((val,index)=>{ this.list.map((val,index)=>{
if(val.type===type){ if(val.type===type){
this.labelTitle = val.label this.labelTitle = val.label
......
...@@ -130,6 +130,9 @@ export default { ...@@ -130,6 +130,9 @@ export default {
}, },
getLabelTitle(){ getLabelTitle(){
let type = this.$route.query.type; let type = this.$route.query.type;
if(type!=='all'){
type = Number(type)
}
this.list.map((val,index)=>{ this.list.map((val,index)=>{
if(val.type===type){ if(val.type===type){
this.labelTitle = val.label 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