mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 15:30:05 +00:00
properly place cloudflare url
This commit is contained in:
@@ -32,8 +32,8 @@ function updateSong() {
|
|||||||
</h5>
|
</h5>
|
||||||
<h5 :style="{ color: action }" class="text-sm action">
|
<h5 :style="{ color: action }" class="text-sm action">
|
||||||
<slot name="length"
|
<slot name="length"
|
||||||
>{{ Math.floor(props.song.length / 60000 || 0) }}:{{
|
>{{ Math.floor(props.song?.length / 60000 || 0) }}:{{
|
||||||
Math.floor((props.song.length ?? 0 / 1000) % 60)
|
Math.floor((props.song?.length ?? 0 / 1000) % 60)
|
||||||
.toString()
|
.toString()
|
||||||
.padStart(2, "0")
|
.padStart(2, "0")
|
||||||
}}</slot
|
}}</slot
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ function createAudio() {
|
|||||||
|
|
||||||
async function loadInitialSong() {
|
async function loadInitialSong() {
|
||||||
try {
|
try {
|
||||||
const api = musicApi();
|
const api = musicApi.value;
|
||||||
const res = await api.musicBackendRecent();
|
const res = await api.musicBackendRecent();
|
||||||
let songs = mapApiToSongs(res.data.songs);
|
let songs = mapApiToSongs(res.data.songs);
|
||||||
if (res.data?.songs?.length) {
|
if (res.data?.songs?.length) {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ async function getMe() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
userStore.setUser(data);
|
userStore.setUser(data);
|
||||||
userStore.cloudflareUrl.value(data.endpoint);
|
userStore.cloudflareUrl.value = data.endpoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user