mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
修改引导页的显示判断
This commit is contained in:
@@ -70,14 +70,17 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
//这里必须放在当前的Session存储中,不能每次都调用
|
||||
apiGuide.hasUser().then(res=>{
|
||||
if(res.result) {
|
||||
this.guideCollection = true;
|
||||
} else {
|
||||
this.guideCollection = false;
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.guideCollection = true;
|
||||
//只是在显示时才调用
|
||||
this.getlist();
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
mounted() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user