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