From f652a1d4500cbc54e6fb83fa8feba45a9bd2c325 Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Thu, 20 Oct 2022 19:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=BC=95=E5=AF=BC=E9=A1=B5?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=98=BE=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/Index.vue b/src/views/Index.vue index 78c5dd9f..ea0b0b75 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -391,7 +391,7 @@ - + @@ -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']),