From 5aa000948d902778d4950cb75f621a6d36b73c56 Mon Sep 17 00:00:00 2001 From: wanglei2 Date: Mon, 28 Dec 2020 18:15:48 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E5=BD=93=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=BF=87=E5=A4=A7=E6=97=B6=EF=BC=8C=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E9=BB=98=E8=AE=A4=E6=B2=A1=E6=9C=89=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=EF=BC=8C=E5=AF=BC=E8=87=B4=E7=9A=84=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E8=B6=85=E6=97=B6=E9=97=AE=E9=A2=98=E3=80=82=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E5=89=8D=E7=AB=AF=E9=BB=98=E8=AE=A4=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=97=A5=E6=9C=9F=E4=B8=BA=E5=BD=93=E5=89=8D=E6=97=A5?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/ui/src/components/Log.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/ui/src/components/Log.vue b/web/ui/src/components/Log.vue index db48747..7a9b59e 100644 --- a/web/ui/src/components/Log.vue +++ b/web/ui/src/components/Log.vue @@ -103,6 +103,13 @@ export default { var vm = this; $(this.$refs.latest).checkbox(); $(this.$refs.failedOnly).checkbox(); + + // 挂载时,初始化日期选择为当前日志,防止大数据量的时候,用户无差别请求导致的io超时 + const time = new Date(); + const day = ("0" + time.getDate()).slice(-2); + const month = ("0" + (time.getMonth() + 1)).slice(-2); + const today = time.getFullYear() + "-" + (month) + "-" + (day); + this.begin = this.end = today; }, watch: {