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