Skip to content

Commit

Permalink
Update index.js - send file through props
Browse files Browse the repository at this point in the history
  • Loading branch information
shiragold authored Apr 30, 2024
1 parent 76749cc commit 1fb03f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@views/HomeView.vue'
import { tune, song } from '@media'

const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
Expand All @@ -18,15 +19,15 @@ const router = createRouter({
path: 'tune',
component: () => import('@content/AudioPlayer.vue'),
props: {
src: 'tune'
src: tune
}
},
{
path: 'song',
name: 'content',
component: () => import('@content/AudioPlayer.vue'),
props: {
src: 'song'
src: song
}
}
]
Expand Down

0 comments on commit 1fb03f1

Please sign in to comment.