Skip to content

Commit

Permalink
更新导航栏
Browse files Browse the repository at this point in the history
  • Loading branch information
unify-z committed Aug 26, 2024
1 parent db646c6 commit 8cb881c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
</el-menu-item>
<el-menu-item>
<el-button v-if="!isTokenPresent()" @click="router.push('/auth/login')" type="primary">登录</el-button>
<div v-else>
<div v-else style="display: flex; align-items: center;">
<img :src="userInfo.avatar_url" alt="Avatar" style="width: 40px; height: 40px; border-radius: 50%;">
<span>{{ userInfo.login }}</span>
<span style="margin-left: 8px;">{{ userInfo.login }}</span>
</div>
</el-menu-item>
</el-menu>
Expand Down

0 comments on commit 8cb881c

Please sign in to comment.