header问题

This commit is contained in:
joshen@zcwytd.com
2023-08-03 11:14:20 +08:00
parent 2e4b7d0a4f
commit 883c613823

View File

@@ -93,7 +93,6 @@
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item><router-link to="/index">学员</router-link></el-dropdown-item> <el-dropdown-item><router-link to="/index">学员</router-link></el-dropdown-item>
<el-dropdown-item v-if="identity == 2 || identity == 5" @click.native="setCurIdentity(2)"><router-link to="/need/waitaudit">教师</router-link></el-dropdown-item> <el-dropdown-item v-if="identity == 2 || identity == 5" @click.native="setCurIdentity(2)"><router-link to="/need/waitaudit">教师</router-link></el-dropdown-item>
<!-- <el-dropdown-item v-if="identity == 3 || identity == 5" @click.native="setCurIdentity(3)"><router-link to="/course/manage">管理员</router-link></el-dropdown-item> -->
<el-dropdown-item v-if="identity == 3 || identity == 5" ><a :href="managerPath+'/learningpath'">管理员</a></el-dropdown-item> <el-dropdown-item v-if="identity == 3 || identity == 5" ><a :href="managerPath+'/learningpath'">管理员</a></el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@@ -219,21 +218,17 @@ export default {
// }); // });
}, },
handleCommand(val) { handleCommand(val) {
if (val === "four") { let urlPre=window.location.protocol+'//'+window.location.host;
this.$emit('showClass',true) // process.env.VUE_APP_BOE_WEB_URL
} else { let obj = {
let urlPre = window.location.protocol + "//" + window.location.host; one: urlPre+'/web/teacherLesson',
// process.env.VUE_APP_BOE_WEB_URL two: urlPre+'/grow180/login',
let obj = { three: this.webBaseUrl + '/study/index?study=1',
one: urlPre + "/web/teacherLesson", four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
two: urlPre + "/grow180/login", five: urlPre+'/boe/new-employee/index.html',
three: this.webBaseUrl + "/study/index?study=1", six: urlPre+'/web/contributor/index'
// four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', };
five: urlPre + "/boe/new-employee/index.html", window.open(obj[val]);
six: urlPre + "/web/contributor/index",
};
window.open(obj[val]);
}
}, },
handleUcCommand(val) { handleUcCommand(val) {
if (val == 'uc') { if (val == 'uc') {
@@ -305,7 +300,7 @@ export default {
}).then(() => { }).then(() => {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
//location.href = this.webBaseUrl + '/login'; //location.href = this.webBaseUrl + '/login';
sessionStorage.setItem('dialog_session_show'+this.userInfo.aid,null); // 清除兴趣采集的"关闭"缓存 sessionStorage.setItem('dialog_session_show'+this.userInfo.aid,null); // 清除兴趣采集的"关闭"缓存
location.href = process.env.VUE_APP_LOGIN_URL; location.href = process.env.VUE_APP_LOGIN_URL;
}); });
}) })