|
@@ -17,7 +17,7 @@
|
|
<Dropdown placement="bottom-end">
|
|
<Dropdown placement="bottom-end">
|
|
<PersonalPhoto style="cursor: pointer;" :name="userInfo.username" :picture="user.picture" :color="userInfo.nameColor" />
|
|
<PersonalPhoto style="cursor: pointer;" :name="userInfo.username" :picture="user.picture" :color="userInfo.nameColor" />
|
|
<DropdownMenu slot="list" class="user-center-wrap">
|
|
<DropdownMenu slot="list" class="user-center-wrap">
|
|
- <DropdownItem class="user-info-wrap">
|
|
|
|
|
|
+ <DropdownItem class="user-info-wrap" @click.native="toUserCenter()">
|
|
<p>{{userInfo.username}}</p>
|
|
<p>{{userInfo.username}}</p>
|
|
<p class="user-id">{{`ID: ${user.id}`}}</p>
|
|
<p class="user-id">{{`ID: ${user.id}`}}</p>
|
|
<Icon class="user-info-arrow" type="ios-arrow-forward" color="#1cc0f3" />
|
|
<Icon class="user-info-arrow" type="ios-arrow-forward" color="#1cc0f3" />
|
|
@@ -138,6 +138,12 @@ export default {
|
|
path: '/home/settings',
|
|
path: '/home/settings',
|
|
query: { tab }
|
|
query: { tab }
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ // 这里可以携带参数,直接跳转到对应的tab
|
|
|
|
+ toUserCenter() {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: 'userCenter'
|
|
|
|
+ })
|
|
},
|
|
},
|
|
doRefresh() {
|
|
doRefresh() {
|
|
this.user = JSON.parse(decodeURIComponent(localStorage.userInfo, "utf-8"));
|
|
this.user = JSON.parse(decodeURIComponent(localStorage.userInfo, "utf-8"));
|