From 59571d216e2e4e7f69902b98f4b4e314edbeb42f Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 17 Jul 2024 18:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B6=E4=BB=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PortalHeader.vue | 6 +++++- src/components/UserCenter/menu.vue | 3 +++ src/views/Index.vue | 5 ++++- src/views/study/GrowthPath.vue | 4 ++-- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index a83c8157..1c55922c 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -260,6 +260,7 @@ export default { ] Promise.all(promises).then(() => { this.nums = this.fistTotals + this.pathTotals + this.growTotal; + console.log(this.nums,'this.nums') sessionStorage.setItem('fistTotals',this.fistTotals) sessionStorage.setItem('pathTotals',this.pathTotals) sessionStorage.setItem('growTotal',this.growTotal) @@ -277,14 +278,17 @@ export default { if(this.isTiao){ if(this.nums == 0){ window.location.href = `${this.webBaseUrl}/uc/study/task?type=9`; + return } // window.location.href = `${this.webBaseUrl}/uc/study/task?type=${this.fistTotals || this.growTotal || this.pathTotals}`; if(this.fistTotals != 0){ window.location.href = `${this.webBaseUrl}/uc/study/task?type=1`; }else if (this.growTotal != 0){ window.location.href = `${this.webBaseUrl}/uc/study/growth`; - }else{ + }else if (this.pathTotals != 0){ window.location.href = `${this.webBaseUrl}/uc/study/task?type=2`; + }else{ + window.location.href = `${this.webBaseUrl}/uc/study/task?type=9`; } }else{ window.location.href = `${this.webBaseUrl}/uc/study/courses`; diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue index 95633de3..ac32d60f 100644 --- a/src/components/UserCenter/menu.vue +++ b/src/components/UserCenter/menu.vue @@ -634,6 +634,9 @@ export default { };