✨ (spotify) add spotify player
This commit is contained in:
16
src/views/SpotifyCallback.vue
Normal file
16
src/views/SpotifyCallback.vue
Normal file
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<div class="spotify-callback"></div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from '@vue/composition-api'
|
||||
import { useSpotifyConnect } from '../hooks/useSpotify'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SpotifyCallback',
|
||||
setup(_, { root }) {
|
||||
useSpotifyConnect(root.$router.currentRoute.hash)
|
||||
root.$router.replace({ name: 'Home' })
|
||||
}
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user