Skip to content

Commit

Permalink
Merge pull request #61 from beclab/fix/ui_bug
Browse files Browse the repository at this point in the history
fix: set default beckground image
  • Loading branch information
wushuangs authored Dec 20, 2024
2 parents 7335383 + c902570 commit e925d89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/frontend/src/pages/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
@drop="onDrop"
>
<div class="bg-container">
<img fit="fill" class="desktop-bg" :src="tokenStore.config.bg" />
<img
v-if="tokenStore.config.bg"
fit="fill"
class="desktop-bg"
:src="tokenStore.config.bg"
/>
<img v-else fit="fill" class="desktop-bg" src="/bg/0.jpg" />
</div>

<DailyDescription />
Expand Down
8 changes: 7 additions & 1 deletion packages/frontend/src/pages/mobile/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
@drop="onDrop"
>
<div class="bg-container">
<img fit="fill" class="desktop-bg" :src="tokenStore.config.bg" />
<img
v-if="tokenStore.config.bg"
fit="fill"
class="desktop-bg"
:src="tokenStore.config.bg"
/>
<img v-else fit="fill" class="desktop-bg" src="/bg/0.jpg" />
</div>

<div class="desktop-avator" @click="onLogout">
Expand Down

0 comments on commit e925d89

Please sign in to comment.