博客头像设置

master
BeininX 11 months ago
parent 2e6c488be2
commit 67c9e97aa4

@ -3,7 +3,7 @@
<!-- 组件的内容 -->
<!-- 网站信息 -->
<div class="card-content1 shadow-box background-opacity">
<el-avatar style="margin-top: 20px" class="user-avatar" :size="120" :src="webInfo.avatar"></el-avatar>
<el-avatar style="margin-top: 20px" class="user-avatar" :size="120" :src="currentUser.avatar"></el-avatar>
<div class="web-name">{{webInfo.webName}}</div>
<div class="web-info">
<div class="blog-info-box">
@ -86,6 +86,9 @@
import axios from "axios";
import * as events from "events";
export default {
avatar: {
type: String
},
//
data() {
return {
@ -94,6 +97,7 @@ export default {
size: 5,
recommendStatus: true
},
currentUser: this.$store.state.currentUser,
recommendArticles: [],
admires: [],
showAdmireDialog: false,

Loading…
Cancel
Save