Compare commits
2 Commits
15d2bc51ca
...
91ae484b36
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91ae484b36 | ||
|
|
0673de9ebe |
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
window.__DMT_MODEL_LIBRARY_CONFIG__ = {
|
||||
// 后端服务根地址。为空时使用当前页面域名,例如 /api/models。
|
||||
// 示例:"https://model-api.example.com"
|
||||
API_BASE_URL: "",
|
||||
API_BASE_URL: "https://dmt.meswork.com/modelLibrary",
|
||||
|
||||
// 模型文件和缩略图服务根地址。为空时优先复用 API_BASE_URL。
|
||||
// 示例:"https://model-api.example.com"
|
||||
STORAGE_BASE_URL: ""
|
||||
STORAGE_BASE_URL: "https://dmt.meswork.com"
|
||||
};
|
||||
|
||||
@@ -14,6 +14,7 @@ function getDevHttpsConfig() {
|
||||
}
|
||||
|
||||
export default defineConfig(({ command }) => ({
|
||||
base: command === "build" ? "/modelLibrary/" : "/",
|
||||
server: command === "serve"
|
||||
? {
|
||||
port: 5174,
|
||||
|
||||
Reference in New Issue
Block a user