fix: 修复 vConsole 与 Flutter WebAssembly 冲突
将 vConsole 初始化移到 body 末尾,延迟加载 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -31,12 +31,6 @@
|
|||||||
|
|
||||||
<title>flutter_monisuo</title>
|
<title>flutter_monisuo</title>
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
|
|
||||||
<!-- vConsole 调试控制台 -->
|
|
||||||
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
|
||||||
<script>
|
|
||||||
new VConsole();
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!--
|
<!--
|
||||||
@@ -48,5 +42,13 @@
|
|||||||
* https://docs.flutter.dev/platform-integration/web/initialization
|
* https://docs.flutter.dev/platform-integration/web/initialization
|
||||||
-->
|
-->
|
||||||
<script src="flutter_bootstrap.js" async></script>
|
<script src="flutter_bootstrap.js" async></script>
|
||||||
|
|
||||||
|
<!-- vConsole 调试控制台 -->
|
||||||
|
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
||||||
|
<script>
|
||||||
|
window.addEventListener('load', function() {
|
||||||
|
new VConsole();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user