diff --git a/__pycache__/app.cpython-312.pyc b/__pycache__/app.cpython-312.pyc new file mode 100644 index 0000000..e4a15f4 Binary files /dev/null and b/__pycache__/app.cpython-312.pyc differ diff --git a/app.py b/app.py index 128d2d9..82c8518 100644 --- a/app.py +++ b/app.py @@ -2522,7 +2522,7 @@ HTML_TEMPLATE = ''' if (!desktopNotifyEnabled || Notification.permission !== 'granted') return; const notification = new Notification('⚠️ 系统资源告警', { - body: warnings.join('\n'), + body: warnings.join('\\n'), icon: 'data:image/svg+xml,📊', tag: 'system-alert', requireInteraction: false diff --git a/logs/app.log b/logs/app.log index fdcb740..28ccde1 100644 --- a/logs/app.log +++ b/logs/app.log @@ -1,8 +1,8 @@ -[2026-06-01 11:40:58] ================================================== -[2026-06-01 11:40:58] 项目服务管理面板 v2.0.0 启动 -[2026-06-01 11:40:58] 访问地址: http://localhost:16022 -[2026-06-01 11:40:58] 进程PID: 774683 -[2026-06-01 11:40:58] ================================================== +[2026-06-01 11:46:32] ================================================== +[2026-06-01 11:46:32] 项目服务管理面板 v2.0.0 启动 +[2026-06-01 11:46:32] 访问地址: http://localhost:16022 +[2026-06-01 11:46:32] 进程PID: 775569 +[2026-06-01 11:46:32] ================================================== * Serving Flask app 'app' * Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. @@ -10,4 +10,4 @@ * Running on http://127.0.0.1:16022 * Running on http://192.168.0.101:16022 Press CTRL+C to quit -127.0.0.1 - - [01/Jun/2026 11:41:03] "GET / HTTP/1.1" 200 - +127.0.0.1 - - [01/Jun/2026 11:46:50] "GET / HTTP/1.1" 200 -