Skip to content

Commit d86d85d

Browse files
committed
fix: update standbyaudio import logic
1 parent 3cc2dd3 commit d86d85d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

custom/composables/agentAudio/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export async function unlockAudio() {
3838
}
3939

4040
export async function startStandByAudio() {
41-
const standByAudio = '/plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3';
41+
const standByAudio = new URL(
42+
'../../public/agentAudio/agent-processing.mp3',
43+
import.meta.url
44+
).href;
4245
const response = await fetch(standByAudio);
4346
console.log('status', response.status);
4447
console.log('content-type', response.headers.get('content-type'));

0 commit comments

Comments
 (0)