From 972f2cb0970c799c11526a00b1f4fa9144dfcc47 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 10 Jul 2024 19:28:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserCenter/menu.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue index fc6b5de7..a588ae32 100644 --- a/src/components/UserCenter/menu.vue +++ b/src/components/UserCenter/menu.vue @@ -437,6 +437,10 @@ export default { activeMenu() { const route = this.$route; const { meta, path } = route; + console.log(path,meta,'path') + if(path == '/uc/study/task' || path == '/uc/study/growth'){ + this.openedsList = ['mystudy'] + } if(path == '/uc/study/task'){ return '/uc/study/task?type=' + (route.query.type || 1) } @@ -469,12 +473,12 @@ export default { }; }, created() { + this.learnTotal() this.$store.dispatch('refrashReviewed'); this.$store.dispatch('refrashStudyTaskCount'); this.getLastStudy(); //获取讲师认证中条数 this.instructorCertification() - this.learnTotal() }, mounted() { //console.log(this.userInfo.loginName,'this.userInfo.loginName');