|
api.openFrame({
name: 'main',
url: 'html/index.html', // 这个地址改成了vite打包后的html页
bounces: true,
rect: { // 推荐使用Margin布局,用于适配屏幕的动态变化
marginTop: headerH, // main页面距离win顶部的高度
marginBottom: footerH, // main页面距离win底部的高度
w: 'auto' // main页面的宽度 自适应屏幕宽度
}
});
// 打包后在html页面里生成的js引用
<script type="module" crossorigin src="./assets/index.559fd86e.js"></script>
<link rel="modulepreload" href="./assets/vendor.070c0b9a.js">
// APICloud控制台输出日志
[2022-1-18 22:43:56][ERROR] Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec. at vendor.070c0b9a.js:0
[2022-1-18 22:43:56][ERROR] Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec. at index.559fd86e.js:0
|
|