This commit is contained in:
2023-07-10 23:58:27 +08:00
parent c79e4e0bbb
commit 35918f5f10
8 changed files with 205 additions and 26 deletions

View File

@@ -15,7 +15,7 @@
<div style="display: flex;flex-direction: row;flex-wrap: nowrap;justify-content: flex-start">
<div style="display: flex;flex-direction: row;justify-content: space-between">
<div @click="changeAvatar" style="cursor: pointer;width: 100px;height: 100px;display: flex;flex-direction: row;align-items: center">
<el-avatar style="display: flex;align-items: center;justify-content: center" :src="'http://localhost:8082/helloGithub_war_exploded/retUserAv?username='+username" :size="90"></el-avatar>
<el-avatar v-if="username" style="display: flex;align-items: center;justify-content: center" :src="'http://localhost:8082/helloGithub_war_exploded/retUserAv?username='+username" :size="90"></el-avatar>
</div>
<div style="display: flex;flex-direction: column;margin-left: 15px;">
<div style="display: flex;flex-direction: row;align-items: center;justify-content: flex-start;">
@@ -145,7 +145,7 @@ export default {
data(){
return{
activeName:'first',
username: null,
username: '',
contributionValue:0,
creatTime:null,
projectNum:0,
@@ -161,7 +161,7 @@ export default {
}
},
mounted() {
this.getUserInfo()
this.getUserInfo();
this.getUserDetail();
setTimeout(()=>{
this.updateUserLevel();
@@ -173,13 +173,11 @@ export default {
created() {
this.updateUserLevel();
this.getUserInfo();
},
watch: {
$route () {
if(this.$route.query.refresh){
this.getUserInfo() //重新调用http请求实现页面的重新渲染
this.getUserInfo(); //重新调用http请求实现页面的重新渲染
this.getUserDetail();
}
},