properly place cloudflare url

This commit is contained in:
2026-03-12 19:41:20 +01:00
parent 582efb8605
commit c6f2f9cc5a
3 changed files with 4 additions and 4 deletions

View File

@@ -32,8 +32,8 @@ function updateSong() {
</h5>
<h5 :style="{ color: action }" class="text-sm action">
<slot name="length"
>{{ Math.floor(props.song.length / 60000 || 0) }}:{{
Math.floor((props.song.length ?? 0 / 1000) % 60)
>{{ Math.floor(props.song?.length / 60000 || 0) }}:{{
Math.floor((props.song?.length ?? 0 / 1000) % 60)
.toString()
.padStart(2, "0")
}}</slot

View File

@@ -127,7 +127,7 @@ function createAudio() {
async function loadInitialSong() {
try {
const api = musicApi();
const api = musicApi.value;
const res = await api.musicBackendRecent();
let songs = mapApiToSongs(res.data.songs);
if (res.data?.songs?.length) {

View File

@@ -44,7 +44,7 @@ async function getMe() {
}
userStore.setUser(data);
userStore.cloudflareUrl.value(data.endpoint);
userStore.cloudflareUrl.value = data.endpoint;
}
onMounted(() => {