From 0a7975d18c5cb73df018eb86c923b7b7e9028144 Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Thu, 20 Oct 2022 12:04:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=BC=95=E5=AF=BC=E9=A1=B5?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Portal/guideBox.vue | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) 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 },