优化
This commit is contained in:
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"e4b8dca3f1b4ede4c30371002441c88c12187e
|
||||
|
||||
_flutter.loader.load({
|
||||
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. */
|
||||
}
|
||||
});
|
||||
|
||||
@@ -194,14 +194,13 @@
|
||||
|
||||
<!-- vConsole 调试控制台 - 仅在开发环境启用 -->
|
||||
<script>
|
||||
// 检测是否为开发环境(localhost 或特定端口)
|
||||
// 检测是否为开发环境(localhost 或 127.0.0.1)
|
||||
var isDev = window.location.hostname === 'localhost' ||
|
||||
window.location.hostname === '127.0.0.1' ||
|
||||
window.location.port !== '' && window.location.port !== '80' && window.location.port !== '443';
|
||||
window.location.hostname === '127.0.0.1';
|
||||
|
||||
if (isDev) {
|
||||
var script = document.createElement('script');
|
||||
script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js';
|
||||
script.src = 'vconsole.min.js';
|
||||
script.onload = function() {
|
||||
new VConsole();
|
||||
};
|
||||
|
||||
10
flutter_monisuo/build/web/vconsole.min.js
vendored
Normal file
10
flutter_monisuo/build/web/vconsole.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user