add multiplex
This commit is contained in:
parent
5010a989e1
commit
deba46e4be
2 changed files with 21 additions and 2 deletions
|
@ -173,7 +173,7 @@ export class LocalFiles {
|
|||
// metadata.common.picture[0].data.toString('base64')
|
||||
|
||||
res.setHeader('Cache-Control', 'public, max-age=31536000');
|
||||
res.setHeader('Expires', new Date(Date.now() + 31536000).toUTCString());
|
||||
res.setHeader('Expires', new Date(Date.now() + 31536000000).toUTCString());
|
||||
res.setHeader('Content-Type', 'image/jpeg');
|
||||
|
||||
let data =
|
||||
|
|
|
@ -1944,12 +1944,31 @@ const app = new Vue({
|
|||
})
|
||||
|
||||
return;
|
||||
} else if(item.attributes.link.url.includes("viewFeature")) {
|
||||
const params = new Proxy(new URLSearchParams(new URL(item.attributes.link.url).search), {
|
||||
get: (searchParams, prop) => searchParams.get(prop),
|
||||
});
|
||||
id = params.id
|
||||
app.mk.api.v3.music(`/v1/editorial/vn/multiplex/${id}?art%5Burl%5D=f&format%5Bresources%5D=map&platform=web`).then(
|
||||
(data) => {
|
||||
let item = data.data.results?.target ?? []
|
||||
app.routeView(item)
|
||||
}
|
||||
)
|
||||
|
||||
} else {
|
||||
window.open(item.attributes.link.url)
|
||||
}
|
||||
}
|
||||
|
||||
} else if (kind == "multirooms") {
|
||||
} else if (kind == "multiplex") {
|
||||
app.mk.api.v3.music(`/v1/editorial/vn/multiplex/${id}?art%5Burl%5D=f&format%5Bresources%5D=map&platform=web`).then(
|
||||
(data) => {
|
||||
let item = data.data.results?.target ?? []
|
||||
app.routeView(item)
|
||||
}
|
||||
)
|
||||
}if (kind == "multirooms") {
|
||||
app.getTypeFromID("multiroom", id, false, {
|
||||
platform: "web",
|
||||
extend: "editorialArtwork,uber,lockupStyle"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue