From 66696685f24da65f4e65599e390c468094f8422c Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 28 May 2025 17:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96log=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/templates/wx_logs.html | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/admin/dashboard/templates/wx_logs.html b/admin/dashboard/templates/wx_logs.html index 0921331..c0e970e 100644 --- a/admin/dashboard/templates/wx_logs.html +++ b/admin/dashboard/templates/wx_logs.html @@ -54,7 +54,7 @@ refreshInterval: 0, refreshTimer: null, currentView: '9', - showTimeRangeSelector: false // 禁用时间范围选择器 + showTimeRangeSelector: false } }, mounted() { @@ -123,10 +123,12 @@ .log-content-wrapper { flex: 1; overflow: hidden; + display: flex; + flex-direction: column; } .log-content { - height: 100%; + flex: 1; overflow-y: auto; overflow-x: auto; background-color: #f5f5f5; @@ -137,17 +139,26 @@ .log-content pre { margin: 0; - white-space: pre; - word-break: normal; - word-wrap: normal; + white-space: pre-wrap; + word-break: break-all; font-family: monospace; } .empty-log { - height: 100%; + flex: 1; display: flex; align-items: center; justify-content: center; } + + .el-card { + height: 100% !important; + } + + .el-card__body { + flex: 1; + display: flex; + flex-direction: column; + } {% endblock %} \ No newline at end of file