diff --git a/src/components/Portal/guideBox.vue b/src/components/Portal/guideBox.vue index 6f40fec6..5be5ccdb 100644 --- a/src/components/Portal/guideBox.vue +++ b/src/components/Portal/guideBox.vue @@ -85,18 +85,18 @@ if(width < 1366) { this.clientWidth = '688px'; } - //这里必须放在当前的Session存储中,不能每次都调用 - apiGuide.hasUser().then(res=>{ - // if(res.result) { - // this.guideCollection = false; - // } else { - // this.guideCollection = true; - // //只是在显示时才调用 - // this.getlist(); - // } - this.guideCollection = true; - this.getlist(); - }); + //这里必须放在当前的Session存储中,不能每次都调用 + apiGuide.hasUser().then(res=>{ + if(res.result) { + this.guideCollection = false; + } else { + this.guideCollection = true; + + } + }); + + //只是在显示时才调用 + this.getlist(); }, mounted() { @@ -133,6 +133,7 @@ }, computed:{ + ...mapGetters(['userInfo','studyTaskCount']), swiper() { return this.$refs.mySwiper.swiper },