We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0f926a commit 5aa0009Copy full SHA for 5aa0009
web/ui/src/components/Log.vue
@@ -103,6 +103,13 @@ export default {
103
var vm = this;
104
$(this.$refs.latest).checkbox();
105
$(this.$refs.failedOnly).checkbox();
106
+
107
+ // 挂载时,初始化日期选择为当前日志,防止大数据量的时候,用户无差别请求导致的io超时
108
+ const time = new Date();
109
+ const day = ("0" + time.getDate()).slice(-2);
110
+ const month = ("0" + (time.getMonth() + 1)).slice(-2);
111
+ const today = time.getFullYear() + "-" + (month) + "-" + (day);
112
+ this.begin = this.end = today;
113
},
114
115
watch: {
0 commit comments