diff --git a/src/components/Playlists.vue b/src/components/Playlists.vue index 6c6fc07..54b2c04 100644 --- a/src/components/Playlists.vue +++ b/src/components/Playlists.vue @@ -17,7 +17,7 @@ function isHandle(el) { return el.classList.contains('pl-handle') } -function handleClick(e) { +function handleClick(plurl, e) { if (!isHandle(e.target)) emit('playthis', plurl) } @@ -39,7 +39,7 @@ onMounted(() => { v-for="plurl in data.state.urls" class="pl-item" :key="plurl.url" - @click="handleClick"> + @click="handleClick(plurl, $event)">