mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
提交
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="item-author">
|
||||
<div style="width:28px;height:28px;">
|
||||
<div style="width:28px;height:28px;" @click="toHome()">
|
||||
<!-- <el-avatar shape="square" size="small" :src="userAvatar" v-if="userAvatar"></el-avatar> -->
|
||||
<!-- <div v-else class="uavatar"><span class="uavatar-text">{{avatarText}}</span></div> -->
|
||||
<el-avatar shape="circle" size="small" :src="userAvatar" v-if="userAvatar"></el-avatar>
|
||||
@@ -66,6 +66,12 @@ import { userAvatarText } from "@/utils/tools.js";
|
||||
this.userInfo=this.info;
|
||||
this.usersex = this.sex;
|
||||
},
|
||||
methods:{
|
||||
toHome() {
|
||||
// ,query:{id:item.objId || item.id}
|
||||
this.$router.push({path:'/homePage'})
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
name(newVal,oldVal){
|
||||
this.userName=newVal;
|
||||
|
||||
Reference in New Issue
Block a user