mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Fix link
This commit is contained in:
parent
9dc0ddebb5
commit
600e937e4e
5 changed files with 5 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
|||
import { $ } from '../utils'
|
||||
import { queueStore, playlistStore, favoriteStore } from '../stores'
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import { map, reduce } from 'lodash'
|
||||
import { reduce } from 'lodash'
|
||||
|
||||
import { playlistStore, favoriteStore } from '../stores'
|
||||
import { ls } from '.'
|
||||
import { $ } from '../utils'
|
||||
|
||||
export const download = {
|
||||
/**
|
||||
|
@ -12,7 +11,7 @@ export const download = {
|
|||
*/
|
||||
fromSongs (songs) {
|
||||
songs = [].concat(songs)
|
||||
const query = reduce(songs, (q, song) => `songs[]=${song.id}&${segment}`, '')
|
||||
const query = reduce(songs, (q, song) => `songs[]=${song.id}&${q}`, '')
|
||||
return this.trigger(`songs?${query}`)
|
||||
},
|
||||
|
||||
|
|
|
@ -216,7 +216,7 @@ export const songStore = {
|
|||
scrobble (song) {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.post(`${song.id}/scrobble/${song.playStartTime}`, {}, response => {
|
||||
resolve(data.response)
|
||||
resolve(response.data)
|
||||
}, error => reject(error))
|
||||
})
|
||||
},
|
||||
|
|
|
@ -197,7 +197,7 @@ export const userStore = {
|
|||
NProgress.start()
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
http.delete(`user/${user.id}`, {}, () => {
|
||||
http.delete(`user/${user.id}`, {}, response => {
|
||||
this.all = without(this.all, user)
|
||||
alerts.success(`User "${user.name}" deleted.`)
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ export const $ = {
|
|||
if (el.scrollTop === to) {
|
||||
return
|
||||
}
|
||||
this.scrollTo(el, to, duration - 10);
|
||||
this.scrollTo(el, to, duration - 10)
|
||||
}, 10)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue