feat: Add systemd service, configure API for proxy deployment, and enhance mobile audio playback with token authentication.

This commit is contained in:
2026-02-03 21:53:41 +08:00
parent 18de86e64f
commit 6c25dd9dd9
9 changed files with 79 additions and 15 deletions

View File

@@ -342,6 +342,10 @@ export const jobApi = {
getAudioUrl: (id: number, audioPath?: string): string => {
if (audioPath) {
if (audioPath.startsWith('http')) {
if (audioPath.includes('localhost') || audioPath.includes('127.0.0.1')) {
const url = new URL(audioPath)
return `${import.meta.env.VITE_API_URL}${url.pathname}`
}
return audioPath
} else {
const baseUrl = import.meta.env.VITE_API_URL