From 1d90ef80647f8ea59fda16e812570beac620cc8e Mon Sep 17 00:00:00 2001 From: Doflatango Date: Sat, 13 Oct 2018 17:49:31 +0800 Subject: [PATCH] UI: .query type compatible --- web/ui/src/components/Log.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ui/src/components/Log.vue b/web/ui/src/components/Log.vue index 61e54ee..db48747 100644 --- a/web/ui/src/components/Log.vue +++ b/web/ui/src/components/Log.vue @@ -121,8 +121,8 @@ export default { this.begin = this.$route.query.begin || ''; this.end = this.$route.query.end || ''; this.page = this.$route.query.page || 1; - this.latest = this.$route.query.latest == 'true' ? true : false; - this.failedOnly = this.$route.query.failedOnly == 'true' ? true : false; + this.latest = this.$route.query.latest === 'true' || this.$route.query.latest === true; + this.failedOnly = this.$route.query.failedOnly === 'true' || this.$route.query.failedOnly === true; }, fetchList(query){