diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index 3aaed155..6526cf92 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 { };