From ed584aa49a7f83cff28e985219154215d1f10712 Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 8 Nov 2022 12:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E9=9D=A2=E6=9D=BF=20?= =?UTF-8?q?=E7=82=B9=E5=87=BB=20=E5=AD=A6=E4=B9=A0=E6=97=B6=E9=95=BF=20?= =?UTF-8?q?=E4=BC=9A=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=8E=92=E8=A1=8C=E6=A6=9C?= =?UTF-8?q?=20=20=20=E2=80=9C=E6=9A=82=E6=97=B6=E2=80=9D=20=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=8D=E5=8F=AF=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PortalHeader.vue | 35 +++++++++++++++++++-------------- src/views/Index.vue | 4 ++-- 2 files changed, 22 insertions(+), 17 deletions(-) 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 @@