修改高度
parent
8411b5076a
commit
13651d490e
16
index.html
16
index.html
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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:{
|
||||
|
|
|
|||
Loading…
Reference in New Issue