修正模型库子路径构建配置
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user