diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index 86556ca9..146028d0 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -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; diff --git a/src/views/Index.vue b/src/views/Index.vue index b89aae89..0d46542b 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -64,10 +64,10 @@
{{userData.totalStudyHour}}小时
-