diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index afc0bdeb..9e290a4a 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -418,20 +418,20 @@ export default { window.open(obj[val]); }, async handleCommand(val) { - if (val === "five") { - // 从后端获取用户信息和报名状态 - const res = await getWelcomeData(); - if (res.status === 200 && res.data) { - if (res.data?.approvalResults && res.data?.approvalResults != 1) { - this.$router.push("/new-employee/study"); - return; - } - } - } if (val === "four") { window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130"); // this.$emit('showClass',true) } else { + if (val === "five") { + // 从后端获取用户信息和报名状态 + const res = await getWelcomeData(); + if (res.status === 200 && res.data) { + if (res.data?.approvalResults && res.data?.approvalResults != 1) { + this.$router.push("/new-employee/study"); + return; + } + } + } let urlPre = window.location.protocol + "//" + window.location.host; // process.env.VUE_APP_BOE_WEB_URL let obj = { diff --git a/src/layout/components/TopNav/Index.vue b/src/layout/components/TopNav/Index.vue index f92ab4f5..979c3b54 100644 --- a/src/layout/components/TopNav/Index.vue +++ b/src/layout/components/TopNav/Index.vue @@ -422,19 +422,20 @@ export default { // four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', // five: process.env.VUE_APP_BOE_WEB_URL+'/boe/new-employee/index.html' // }; - if (val === "five") { - // 从后端获取用户信息和报名状态 - const res = await getWelcomeData(); - if (res.status === 200 && res.data) { - if (res.data?.approvalResults && res.data?.approvalResults != 1) { - this.$router.push("/new-employee/study"); - return; - } - } - } + if (val === "for") { this.uClassShow = true; } else { + if (val === "five") { + // 从后端获取用户信息和报名状态 + const res = await getWelcomeData(); + if (res.status === 200 && res.data) { + if (res.data?.approvalResults && res.data?.approvalResults != 1) { + this.$router.push("/new-employee/study"); + return; + } + } + } let urlPre = window.location.protocol + "//" + window.location.host; // process.env.VUE_APP_BOE_WEB_URL let obj = {