修正模型库子路径构建配置
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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