Compare commits

..

2 Commits

Author SHA1 Message Date
zhangshun
91ae484b36 修改模型树相关配置 2026-07-11 13:41:11 +08:00
zhangshun
0673de9ebe 修正模型库子路径构建配置 2026-07-10 13:34:03 +08:00
3 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script src="/model-library-config.js"></script> <script src="%BASE_URL%model-library-config.js"></script>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
</body> </body>
</html> </html>

View File

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

View File

@@ -14,6 +14,7 @@ function getDevHttpsConfig() {
} }
export default defineConfig(({ command }) => ({ export default defineConfig(({ command }) => ({
base: command === "build" ? "/modelLibrary/" : "/",
server: command === "serve" server: command === "serve"
? { ? {
port: 5174, port: 5174,