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

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

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