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

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

@@ -0,0 +1,9 @@
window.__DMT_MODEL_LIBRARY_CONFIG__ = {
// 后端服务根地址。为空时使用当前页面域名,例如 /api/models。
// 示例:"https://model-api.example.com"
API_BASE_URL: "",
// 模型文件和缩略图服务根地址。为空时优先复用 API_BASE_URL。
// 示例:"https://model-api.example.com"
STORAGE_BASE_URL: ""
};