增加前端运行时后端地址配置
This commit is contained in:
9
web/public/model-library-config.js
Normal file
9
web/public/model-library-config.js
Normal 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: ""
|
||||
};
|
||||
Reference in New Issue
Block a user