This commit is contained in:
zhaofang
2022-10-19 17:23:25 +08:00
parent cbd6bde484
commit 4832d9288a
2 changed files with 9 additions and 2 deletions

View File

@@ -34,6 +34,10 @@
type:String, type:String,
default:'' default:''
}, },
noJump:{
type:Number,
default: true
}
}, },
data(){ data(){
return { return {
@@ -60,8 +64,11 @@
methods:{ methods:{
toHome() { toHome() {
// ,query:{id:item.objId || item.id} // ,query:{id:item.objId || item.id}
if(this.noJump) {
this.$router.push({path:this.$xpage.getHomePath(this.aid)}) this.$router.push({path:this.$xpage.getHomePath(this.aid)})
} }
}
}, },
watch:{ watch:{
name(newVal,oldVal){ name(newVal,oldVal){

View File

@@ -16,7 +16,7 @@
</div> </div>
<div class="personal-panel"> <div class="personal-panel">
<div class="personal-img"> <div class="personal-img">
<author-img v-if="userInfo.avatar" :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img> <author-img v-if="userInfo.avatar" :avatar="userInfo.avatar" :aid="userInfo.aid" :noJump="false" :sex="userInfo.sex"></author-img>
<!-- {{ userInfo.avatar }} --> <!-- {{ userInfo.avatar }} -->
</div> </div>
<!-- <img style="width:68px;height:68px" src="/images/Avatarman.png" alt=""> --> <!-- <img style="width:68px;height:68px" src="/images/Avatarman.png" alt=""> -->