Skip to content

Commit

Permalink
修复isSetBackground读取
Browse files Browse the repository at this point in the history
  • Loading branch information
cunoe committed May 15, 2024
1 parent dc0cddc commit b9271c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/main/AppNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const isSetBackground = ref(false);
useIntervalFn(()=>{
getKV('backgroundImage').then((res) => {
isSetBackground.value = res !== 'false'
isSetBackground.value = !(res === 'false' || res === '');
}).catch(() => {
isSetBackground.value = false
})
Expand Down
2 changes: 1 addition & 1 deletion components/player/EnemyCardSimple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const props = defineProps<{
getKV('backgroundImage').then((res) => {
isSetBackground.value = res !== 'false'
isSetBackground.value = !(res === 'false' || res === '');
}).catch(() => {
isSetBackground.value = false
})
Expand Down
2 changes: 1 addition & 1 deletion components/player/TeammateCardSimple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const props = defineProps<{
getKV('backgroundImage').then((res) => {
isSetBackground.value = res !== 'false'
isSetBackground.value = !(res === 'false' || res === '');
}).catch(() => {
isSetBackground.value = false
})
Expand Down

0 comments on commit b9271c5

Please sign in to comment.