增加前端运行时后端地址配置

This commit is contained in:
zhangshun
2026-06-02 13:32:08 +08:00
parent 8fb45bd42a
commit e2e7aa5f06
7 changed files with 73 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
import { resolveStorageUrl } from "../config/runtime";
export async function downloadFileFromUrl(fileUrl: string, fileName: string) {
const response = await fetch(fileUrl, {
const response = await fetch(resolveStorageUrl(fileUrl), {
credentials: "include"
});
if (!response.ok) {