This commit is contained in:
zhaofang
2022-09-16 17:21:07 +08:00
parent 99586e1144
commit 018a54cd1e
2 changed files with 10 additions and 3 deletions

View File

@@ -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;