Skip to content

Commit

Permalink
Fix AudioPlayer.vue - make the import outside
Browse files Browse the repository at this point in the history
  • Loading branch information
shiragold authored Apr 30, 2024
1 parent 834ef56 commit 1385459
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/content/AudioPlayer.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script setup>
import { ref, onBeforeMount, onMounted } from 'vue'
import tune from '@media/tune.mp3'
import song from '@media/song.mp3'
import { onMounted } from 'vue'
const props = defineProps({
src: {
Expand All @@ -15,7 +13,6 @@ onMounted(() => {
</script>
<template>
<audio>
<source v-if="src === 'tune'" :src="tune" type="audio/mpeg" />
<source v-if="src === 'song'" :src="song" type="audio/mpeg" />
<source :src="src" type="audio/mpeg" />
</audio>
</template>

0 comments on commit 1385459

Please sign in to comment.