fixed bug for audio and video downloading

This commit is contained in:
RockYang
2024-11-05 11:38:32 +08:00
parent cbc9eb3a59
commit 5be4e83876
5 changed files with 30 additions and 22 deletions

View File

@@ -225,6 +225,9 @@ export function showLoginDialog(router) {
}
export const replaceImg =(img) => {
if (!img.startsWith("http")) {
img = `${location.protocol}//${location.host}/${img}`
}
const devHost = process.env.VUE_APP_API_HOST
const localhost = "http://localhost:5678"
if (img.includes(localhost)) {