个人面板 点击 学习时长 会跳转到排行榜 “暂时” 改为不可跳转

This commit is contained in:
daihh
2022-11-08 12:49:59 +08:00
parent 8560a3478e
commit ed584aa49a
2 changed files with 22 additions and 17 deletions

View File

@@ -155,7 +155,7 @@ export default {
components:{gonggao},
computed: {
...mapGetters(['userInfo', 'userMsg','identity']),
...mapGetters(['userInfo', 'userMsg','identity','studyTaskCount']),
avatarText(){
return userAvatarText(this.userInfo.name);
@@ -190,20 +190,25 @@ export default {
console.log('lll')
},
loadBoeData() {
let params = {
// keyword:this.keyword,
page: 1,
size: 10
// cmtask_status:this.cmtask_status,
// cmtask_name:this.cmtask_name,
};
apiBoeCourse.cmtaskList(params).then(res => {
if (res.status == 200 && res.result.count > 0) {
this.isTiao = true;
} else {
this.isTiao = false;
}
});
if(this.studyTaskCount>0){
this.isTiao = true;
}else{
this.isTiao = false;
}
// let params = {
// // keyword:this.keyword,
// page: 1,
// size: 10
// // cmtask_status:this.cmtask_status,
// // cmtask_name:this.cmtask_name,
// };
// apiBoeCourse.cmtaskList(params).then(res => {
// if (res.status == 200 && res.result.count > 0) {
// this.isTiao = true;
// } else {
// this.isTiao = false;
// }
// });
},
handleCommand(val) {
let urlPre=window.location.protocol+'//'+window.location.host;