恢复引导页弹窗显示

This commit is contained in:
weinan2087
2022-10-20 12:04:45 +08:00
parent f70a08bc45
commit 0a7975d18c

View File

@@ -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
},