From f83438e97dd30b1de372a0f7e52be0896822add6 Mon Sep 17 00:00:00 2001 From: zxj Date: Thu, 11 Dec 2025 23:30:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A4=84=E7=90=86=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E6=8A=A5=E5=90=8D=E8=AE=B0=E5=BD=95=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/new-employee/WelcomePage.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/new-employee/WelcomePage.vue b/src/views/new-employee/WelcomePage.vue index da3bfb3b..d1410510 100644 --- a/src/views/new-employee/WelcomePage.vue +++ b/src/views/new-employee/WelcomePage.vue @@ -118,13 +118,18 @@ export default { // 从后端获取用户信息和报名状态 const res = await getWelcomeData(); const szxygProjectInfo = await getSzxygProjectInfo(); + this.allowSelfRegistration = + szxygProjectInfo.data.allowSelfRegistration; if (res.status === 200 && res.data) { + if (typeof res.data === "string") { + this.approvalResults = null; + return; + } this.userName = res.data.studentName; // 1报名失败、2审核中、3审核通过、4审核失败 if (res.data.approvalResults) { this.approvalResults = res.data.approvalResults; - this.allowSelfRegistration = - szxygProjectInfo.data.allowSelfRegistration; + if (res.data.approvalResults != 1) { this.$router.push("/new-employee/study"); }