mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
切换到Dev版本
This commit is contained in:
@@ -289,7 +289,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
checkHas(){
|
checkHas(){
|
||||||
if(this.type>0){
|
if(this.type>0 && this.data.id){
|
||||||
|
if(this.praises){
|
||||||
apiPraises.has(this.type,this.data.id).then(rs=>{
|
apiPraises.has(this.type,this.data.id).then(rs=>{
|
||||||
if(rs.status==200 && rs.result){
|
if(rs.status==200 && rs.result){
|
||||||
this.isPraise=true;
|
this.isPraise=true;
|
||||||
@@ -297,6 +298,8 @@ export default {
|
|||||||
this.isPraise=false;
|
this.isPraise=false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
if(this.favorites){
|
||||||
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;
|
||||||
@@ -305,6 +308,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
submit(){
|
submit(){
|
||||||
if(this.inputValue!=''){
|
if(this.inputValue!=''){
|
||||||
|
|||||||
Reference in New Issue
Block a user