mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
提交
This commit is contained in:
@@ -238,14 +238,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
checkHas(){
|
checkHas(){
|
||||||
if(this.type>0){
|
if(this.type>0 && !this.readonly && this.data.id){
|
||||||
apiPraises.has(this.type,this.data.id).then(rs=>{
|
if(this.favorites){
|
||||||
if(rs.status==200 && rs.result){
|
|
||||||
this.isPraise=true;
|
|
||||||
}else{
|
|
||||||
this.isPraise=false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
apiFavorites.has(this.type,this.data.id).then(rs=>{
|
apiFavorites.has(this.type,this.data.id).then(rs=>{
|
||||||
if(rs.status==200 && rs.result){
|
if(rs.status==200 && rs.result){
|
||||||
this.isFavorite=true;
|
this.isFavorite=true;
|
||||||
@@ -254,6 +248,16 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if(this.praises){
|
||||||
|
apiPraises.has(this.type,this.data.id).then(rs=>{
|
||||||
|
if(rs.status==200 && rs.result){
|
||||||
|
this.isPraise=true;
|
||||||
|
}else{
|
||||||
|
this.isPraise=false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
addShare(){
|
addShare(){
|
||||||
if(this.readonly){
|
if(this.readonly){
|
||||||
|
|||||||
Reference in New Issue
Block a user