头部跳转

This commit is contained in:
zhaofang
2022-09-28 16:37:14 +08:00
parent 1cd2581460
commit b031b1f455
2 changed files with 5 additions and 5 deletions

View File

@@ -80,8 +80,8 @@
</span> </span>
<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="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="setCurIdentity(3)"><router-link to="/course/manage">管理员</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-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
@@ -101,7 +101,7 @@
<div v-else style="color:#fff;font-size: 14px;font-weight: 600;margin-top: 10px;">{{userInfo.name}}</div> <div v-else style="color:#fff;font-size: 14px;font-weight: 600;margin-top: 10px;">{{userInfo.name}}</div>
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item><a :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`">个人中心</a></el-dropdown-item> <el-dropdown-item @click.native="setCurIdentity(1)"><a :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`">个人中心</a></el-dropdown-item>
<el-dropdown-item><router-link :to="'/homePage?id='+userInfo.aid">个人主页</router-link></el-dropdown-item> <el-dropdown-item><router-link :to="'/homePage?id='+userInfo.aid">个人主页</router-link></el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@@ -143,7 +143,7 @@ export default {
}, },
computed: { computed: {
...mapGetters(['userInfo', 'userMsg']), ...mapGetters(['userInfo', 'userMsg','identity']),
avatarText(){ avatarText(){
return userAvatarText(this.userInfo.name); return userAvatarText(this.userInfo.name);

View File

@@ -129,7 +129,7 @@ export default {
}; };
}, },
computed: { computed: {
...mapGetters(['userInfo', 'userMsg']), ...mapGetters(['userInfo', 'userMsg','identity']),
showName: function() { showName: function() {
//console.log('name='+this.name); //console.log('name='+this.name);
//console.log('loginName='+this.loginName); //console.log('loginName='+this.loginName);