This commit is contained in:
vapormusic 2022-01-15 20:58:13 +07:00
parent 5de86d3233
commit e3d7d6b4b3
7 changed files with 82 additions and 55 deletions

View file

@ -234,7 +234,11 @@
}
let kind = this.data.attributes.playParams.kind ?? this.data.type ?? '';
const truekind = (!kind.endsWith("s")) ? (kind + "s") : kind;
app.mk.api.library.remove({[truekind]: id})
app.mk.api.v3.music(`v1/me/library/${truekind}/${id.toString()}`,{},
{
fetchOptions: {
method: "DELETE"
}})
this.inLibrary = false
this.confirm = false
},