From 3062f0d6e7899f16075fcfc87de30b08c8bbaf11 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 28 May 2025 17:26:09 +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 | 36 +++++++++++++++++++------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/admin/dashboard/templates/wx_logs.html b/admin/dashboard/templates/wx_logs.html index b797af2..0921331 100644 --- a/admin/dashboard/templates/wx_logs.html +++ b/admin/dashboard/templates/wx_logs.html @@ -3,7 +3,7 @@ {% block title %}微信日志查看{% endblock %} {% block content %} -
+
日志查看 @@ -28,7 +28,7 @@ 刷新
-
+
{% raw %}{{ logContent.join('') }}{% endraw %}
@@ -51,9 +51,10 @@ logType: 'info', logLines: 100, logContent: [], - refreshInterval: 0, // 新增,定时刷新间隔(秒),0为不自动刷新 - refreshTimer: null, // 新增,定时器句柄 - currentView: '9' // 设置当前菜单项 + refreshInterval: 0, + refreshTimer: null, + currentView: '9', + showTimeRangeSelector: false // 禁用时间范围选择器 } }, mounted() { @@ -69,7 +70,6 @@ .then(response => { if (response.data.success) { this.logContent = response.data.data.content || []; - // 日志内容更新后自动滚动到底部 this.$nextTick(() => { const logDiv = this.$el.querySelector('.log-content'); if (logDiv) { @@ -107,17 +107,32 @@ {% endblock %} \ No newline at end of file