diff --git a/src/components/NewEmployeeGuideDialog.vue b/src/components/NewEmployeeGuideDialog.vue index 9f71ab2a..f87250c9 100644 --- a/src/components/NewEmployeeGuideDialog.vue +++ b/src/components/NewEmployeeGuideDialog.vue @@ -18,18 +18,10 @@ class="footer-btn" type="primary" :loading="processing" - @click="handleConfirmClick" - v-if="showBtn" - > - 立即学习 - - - 取消 + 关闭 diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index 965d7549..afc0bdeb 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -422,7 +422,7 @@ export default { // 从后端获取用户信息和报名状态 const res = await getWelcomeData(); if (res.status === 200 && res.data) { - if (res.data?.approvalResults != 1) { + if (res.data?.approvalResults && res.data?.approvalResults != 1) { this.$router.push("/new-employee/study"); return; } diff --git a/src/layout/components/TopNav/Index.vue b/src/layout/components/TopNav/Index.vue index 9ef6281c..f92ab4f5 100644 --- a/src/layout/components/TopNav/Index.vue +++ b/src/layout/components/TopNav/Index.vue @@ -426,7 +426,7 @@ export default { // 从后端获取用户信息和报名状态 const res = await getWelcomeData(); if (res.status === 200 && res.data) { - if (res.data?.approvalResults != 1) { + if (res.data?.approvalResults && res.data?.approvalResults != 1) { this.$router.push("/new-employee/study"); return; } diff --git a/src/views/new-employee/StudyPage.vue b/src/views/new-employee/StudyPage.vue index c2f8dea1..4b585e8d 100644 --- a/src/views/new-employee/StudyPage.vue +++ b/src/views/new-employee/StudyPage.vue @@ -218,7 +218,7 @@