diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index c76d0593..b7f65272 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -218,17 +218,21 @@ export default { // }); }, handleCommand(val) { - let urlPre=window.location.protocol+'//'+window.location.host; - // process.env.VUE_APP_BOE_WEB_URL - let obj = { - one: urlPre+'/web/teacherLesson', - two: urlPre+'/grow180/login', - three: this.webBaseUrl + '/study/index?study=1', - four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', - five: urlPre+'/boe/new-employee/index.html', - six: urlPre+'/web/contributor/index' - }; - window.open(obj[val]); + if (val === "four") { + this.$emit('showClass',true) + } else { + let urlPre = window.location.protocol + "//" + window.location.host; + // process.env.VUE_APP_BOE_WEB_URL + let obj = { + one: urlPre + "/web/teacherLesson", + two: urlPre + "/grow180/login", + three: this.webBaseUrl + "/study/index?study=1", + // four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', + five: urlPre + "/boe/new-employee/index.html", + six: urlPre + "/web/contributor/index", + }; + window.open(obj[val]); + } }, handleUcCommand(val) { if (val == 'uc') {