fix:报名后直接进入学习页面

This commit is contained in:
zxj
2025-11-18 16:12:59 +08:00
parent 8808927507
commit 3088c8f1c8
3 changed files with 25 additions and 4 deletions

View File

@@ -337,6 +337,7 @@
<script>
import { mapGetters } from "vuex";
import desk from "@/api/console.js";
import { getWelcomeData } from "@/api/new-employee/newEmployee";
import Cookies from "vue-cookies";
import InterestCollection from "@/components/Portal/interestCollection.vue";
import GuideBox from "@/components/Portal/guideBox.vue";
@@ -413,7 +414,7 @@ export default {
closeSignDlg() {
this.signInShow = false;
},
handleCommand(val) {
async handleCommand(val) {
// let obj = {
// one: process.env.VUE_APP_BOE_WEB_URL+'/web/teacherLesson',
// two: process.env.VUE_APP_BOE_WEB_URL+'/grow180/login',
@@ -421,6 +422,16 @@ 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 != 1) {
this.$router.push("/new-employee/study");
return;
}
}
}
if (val === "for") {
this.uClassShow = true;
} else {