切换到Dev版本

This commit is contained in:
daihh
2022-06-03 11:41:32 +08:00
parent e577d7a313
commit 5e5b5f4dc2

View File

@@ -289,21 +289,25 @@ export default {
}) })
}, },
checkHas(){ checkHas(){
if(this.type>0){ if(this.type>0 && this.data.id){
apiPraises.has(this.type,this.data.id).then(rs=>{ if(this.praises){
if(rs.status==200 && rs.result){ apiPraises.has(this.type,this.data.id).then(rs=>{
this.isPraise=true; if(rs.status==200 && rs.result){
}else{ this.isPraise=true;
this.isPraise=false; }else{
} this.isPraise=false;
}); }
apiFavorites.has(this.type,this.data.id).then(rs=>{ });
if(rs.status==200 && rs.result){ }
this.isFavorite=true; if(this.favorites){
}else{ apiFavorites.has(this.type,this.data.id).then(rs=>{
this.isFavorite=false; if(rs.status==200 && rs.result){
} this.isFavorite=true;
}) }else{
this.isFavorite=false;
}
})
}
} }
}, },
submit(){ submit(){