This commit is contained in:
2026-03-25 23:34:45 +08:00
parent bb3aa6ead7
commit 060c95bc64
5 changed files with 27 additions and 9 deletions

View File

@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"e4b8dca3f1b4ede4c30371002441c88c12187e
_flutter.loader.load({ _flutter.loader.load({
serviceWorkerSettings: { serviceWorkerSettings: {
serviceWorkerVersion: "709810084" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */ serviceWorkerVersion: "4036351199" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
} }
}); });

View File

@@ -194,14 +194,13 @@
<!-- vConsole 调试控制台 - 仅在开发环境启用 --> <!-- vConsole 调试控制台 - 仅在开发环境启用 -->
<script> <script>
// 检测是否为开发环境localhost 或特定端口 // 检测是否为开发环境localhost 或 127.0.0.1
var isDev = window.location.hostname === 'localhost' || var isDev = window.location.hostname === 'localhost' ||
window.location.hostname === '127.0.0.1' || window.location.hostname === '127.0.0.1';
window.location.port !== '' && window.location.port !== '80' && window.location.port !== '443';
if (isDev) { if (isDev) {
var script = document.createElement('script'); var script = document.createElement('script');
script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js'; script.src = 'vconsole.min.js';
script.onload = function() { script.onload = function() {
new VConsole(); new VConsole();
}; };

File diff suppressed because one or more lines are too long

View File

@@ -194,14 +194,13 @@
<!-- vConsole 调试控制台 - 仅在开发环境启用 --> <!-- vConsole 调试控制台 - 仅在开发环境启用 -->
<script> <script>
// 检测是否为开发环境localhost 或特定端口 // 检测是否为开发环境localhost 或 127.0.0.1
var isDev = window.location.hostname === 'localhost' || var isDev = window.location.hostname === 'localhost' ||
window.location.hostname === '127.0.0.1' || window.location.hostname === '127.0.0.1';
window.location.port !== '' && window.location.port !== '80' && window.location.port !== '443';
if (isDev) { if (isDev) {
var script = document.createElement('script'); var script = document.createElement('script');
script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js'; script.src = 'vconsole.min.js';
script.onload = function() { script.onload = function() {
new VConsole(); new VConsole();
}; };

10
flutter_monisuo/web/vconsole.min.js vendored Normal file

File diff suppressed because one or more lines are too long