mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
控制引导页弹窗显示。
This commit is contained in:
@@ -391,7 +391,7 @@
|
||||
<portal-footer></portal-footer>
|
||||
<portalFloatTools></portalFloatTools>
|
||||
<interest-Collection></interest-Collection> <!-- 兴趣偏好 -->
|
||||
<guide-box></guide-box> <!-- 引导页 -->
|
||||
<guide-box ref="guide"></guide-box> <!-- 引导页 -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -405,6 +405,7 @@
|
||||
import apiCase from '@/api/modules/cases.js';
|
||||
import apiArticle from '@/api/modules/article.js';
|
||||
import apiQa from '@/api/modules/qa.js';
|
||||
import apiGuide from "@/api/phase2/guide.js";
|
||||
import apiUser from '@/api/system/user.js';
|
||||
import apiCoursePortal from '@/api/modules/coursePortal.js';
|
||||
import interactBar from '@/components/Portal/interactBar.vue';
|
||||
@@ -530,6 +531,15 @@
|
||||
this.getLevel();
|
||||
this.getQaAnswers();
|
||||
|
||||
// 控制引导页弹框显示
|
||||
apiGuide.hasUser().then(res=>{
|
||||
if(res.result) {
|
||||
this.$refs.guide.guideCollection = false;
|
||||
} else {
|
||||
this.$refs.guide.guideCollection = true;
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo','studyTaskCount']),
|
||||
|
||||
Reference in New Issue
Block a user