mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
fix:报名后直接进入学习页面
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user