修改高度

main
ihzero 2024-05-09 20:44:16 +08:00
parent 8411b5076a
commit 13651d490e
2 changed files with 16 additions and 2 deletions

View File

@ -1,13 +1,27 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue</title>
<title></title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script>
window.parent.postMessage(
{
type: 'amis:resize',
data: {
height: 960
}
},
'*'
)
</script>
</body>
</html>

View File

@ -5,7 +5,7 @@ import { fileURLToPath, URL } from 'node:url'
// https://vitejs.dev/config/
export default defineConfig({
build:{
assetsDir: 'h5/assets',
assetsDir: 'cockpit/assets',
},
plugins: [vue(), UnoCSS()],
server:{