diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue
index 184f061f..f32d383f 100644
--- a/src/components/UserCenter/menu.vue
+++ b/src/components/UserCenter/menu.vue
@@ -298,7 +298,12 @@
我的必修
-
+
+
+
+ 我的选修
+
+
我的选修
@@ -307,11 +312,6 @@
自选学习
-
-
-
- 我的选修
-
@@ -457,7 +457,7 @@ export default {
}
console.log('2')
if(path == '/uc/study/task'){
- console.log(route.query.type,(this.fistTotals && 1),'type')
+ console.log('/uc/study/task?type=' + (route.query.type || (this.fistTotals && 1) || 2),'type')
return '/uc/study/task?type=' + (route.query.type || (this.fistTotals && 1) || 2)
}
console.log('3')
@@ -532,8 +532,8 @@ export default {
}
},
learnTotal(){
- // const route = this.$route;
- // const { meta, path } = route;
+ const route = this.$route;
+ const { meta, path } = route;
let params = {
pageNo: 1,
pageSize: 10,
@@ -563,6 +563,17 @@ export default {
]
Promise.all(promises).then(() => {
sessionStorage.setItem('totalNums', this.fistTotals + this.pathTotals + this.growTotal);
+ if(path == '/uc/study/task'){
+ if(this.fistTotals != 0){
+ this.$router.push('/uc/study/task?type=1')
+ }else if (this.growTotal != 0){
+ this.$router.push('/uc/study/growth')
+ }else if (this.pathTotals != 0){
+ this.$router.push('/uc/study/task?type=2')
+ }else{
+ this.$router.push('/uc/study/task?type=9')
+ }
+ }
});
apiManage.queryTaskCounts({}).then(res=>{
// this.proTotal =parseInt(res.data.count); //学习项目