修复前端错误
All checks were successful
Go CI / test-and-build (push) Successful in 14s
Web CI / lint-test-build (push) Successful in 23s

This commit is contained in:
2026-04-07 14:15:43 +08:00
parent 1bc5110440
commit aa45b1cd8d

View File

@@ -33,7 +33,7 @@ export const usePlayerStore = defineStore('player', () => {
const song = ref(null)
const playlist = ref([])
const cover = computed(() => `/api/songs/${song.value.id}/cover`)
const cover = computed(() => `/api/songs/${song.value?.id || 0}/cover`)
const progress = computed(() => {
if (duration.value === 0) return 0
return (currentTime.value / duration.value) * 100