Fix emit warning
This commit is contained in:
parent
324e028a33
commit
0e6097c7b8
|
@ -331,7 +331,7 @@ import TrackPlaylistIcon from '~/components/playlists/TrackPlaylistIcon.vue'
|
||||||
import updateQueryString from '~/composables/updateQueryString'
|
import updateQueryString from '~/composables/updateQueryString'
|
||||||
import onKeyboardShortcut from '~/composables/onKeyboardShortcut'
|
import onKeyboardShortcut from '~/composables/onKeyboardShortcut'
|
||||||
import { useThrottleFn, useTimeoutFn, useToggle } from '@vueuse/core'
|
import { useThrottleFn, useTimeoutFn, useToggle } from '@vueuse/core'
|
||||||
import { computed, watch, defineEmits } from 'vue'
|
import { computed, watch } from 'vue'
|
||||||
import { useGettext } from 'vue3-gettext'
|
import { useGettext } from 'vue3-gettext'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -340,8 +340,9 @@ export default {
|
||||||
TrackFavoriteIcon,
|
TrackFavoriteIcon,
|
||||||
TrackPlaylistIcon
|
TrackPlaylistIcon
|
||||||
},
|
},
|
||||||
setup () {
|
setup (props, { emit }) {
|
||||||
const emit = defineEmits(['next', 'previous'])
|
// TODO (wvffle): When migrating to <script setup> use defineEmits
|
||||||
|
// const emit = defineEmits(['next', 'previous'])
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const { $pgettext } = useGettext()
|
const { $pgettext } = useGettext()
|
||||||
|
|
Loading…
Reference in New Issue