修正模型库子路径构建配置

This commit is contained in:
zhangshun
2026-07-10 13:34:03 +08:00
parent 15d2bc51ca
commit 0673de9ebe
2 changed files with 2 additions and 1 deletions

View File

@@ -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>

View File

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