优化
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user