Skip to content

Commit

Permalink
fix: screen not activated on app load
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed Sep 21, 2022
1 parent 25c9da4 commit 4eab978
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</template>

<script lang="ts" setup>
import { defineAsyncComponent, ref, toRef } from 'vue'
import { defineAsyncComponent, onMounted, ref, toRef } from 'vue'
import { eventBus } from '@/utils'
import { preferenceStore } from '@/stores'
import { useThirdPartyServices } from '@/composables'
Expand All @@ -45,6 +45,7 @@ import FavoritesScreen from '@/components/screens/FavoritesScreen.vue'
import RecentlyPlayedScreen from '@/components/screens/RecentlyPlayedScreen.vue'
import UploadScreen from '@/components/screens/UploadScreen.vue'
import SearchExcerptsScreen from '@/components/screens/search/SearchExcerptsScreen.vue'
import router from '@/router'
const UserListScreen = defineAsyncComponent(() => import('@/components/screens/UserListScreen.vue'))
const AlbumArtOverlay = defineAsyncComponent(() => import('@/components/ui/AlbumArtOverlay.vue'))
Expand Down Expand Up @@ -73,6 +74,8 @@ eventBus.on({
TOGGLE_VISUALIZER: () => (showingVisualizer.value = !showingVisualizer.value),
SONG_STARTED: (song: Song) => (currentSong.value = song)
})
onMounted(() => router.resolveRoute())
</script>

<style lang="scss">
Expand Down

0 comments on commit 4eab978

Please sign in to comment.