diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue
index 4c72d65e..a98e70b5 100644
--- a/src/components/UserCenter/menu.vue
+++ b/src/components/UserCenter/menu.vue
@@ -242,17 +242,20 @@
我的勋章
-
-
-
-
- 我的必修
-
-
-
- 专业力必修
-
-
+
+
+
+
+
+ 我的必修
+
+
+
+ 专业力必修
+
+
+
+
@@ -396,6 +399,7 @@ import { mapGetters } from 'vuex';
import apicourseStudy from "../../api/modules/courseStudy.js"
import {pageList} from "@/api/modules/lecturer"
import courseImage from "@/components/Course/courseImage.vue"
+import { listData } from "@/api/growth/growthpath"
import testUser from '@/utils/testUsers.js'
export default {
name: 'UcMenu',
@@ -424,7 +428,8 @@ export default {
isCollapse: false,
lastStudy:{},
overlayShow: false,
- instructor:0
+ instructor:0,
+ showGrowthNav: false
};
},
created() {
@@ -434,6 +439,10 @@ export default {
//获取讲师认证中条数
this.instructorCertification()
console.log(this.userInfo,'userInfouserInfo')
+ //如果专业力必修没有学习任务则隐藏“我的必修按钮”
+ listData().then(res => {
+ this.showGrowthNav = !!res.data.length
+ })
},
mounted() {
//console.log(this.userInfo.loginName,'this.userInfo.loginName');