Skip to content

Commit

Permalink
Fix: oauth2 platform list
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyCreeper committed Nov 4, 2023
1 parent 6a42b32 commit c5ea977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ onMounted(async () => {
<h1 class="text-[28px] font-bold">请选择登陆方式</h1>
<button
v-for="item in OAuth2Platforms_?.enabled"
:class="`btn ${platforms[item].class} m-[10px]`"
:class="`btn ${platforms[item] ? platforms[item].class : ''} m-[10px]`"
@click="useOAuth2(item)"
>
使用 {{ platforms[item].name }} 账号登录
使用 {{ platforms[item] ? platforms[item].name : item }} 账号登录
</button>
</div>
</div>
Expand Down

0 comments on commit c5ea977

Please sign in to comment.