修改其他问题

This commit is contained in:
zhangsir
2024-07-17 18:38:20 +08:00
parent f6244aa462
commit 59571d216e
4 changed files with 14 additions and 4 deletions

View File

@@ -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`;