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