UI: .query type compatible

pull/109/head
Doflatango 2018-10-13 17:49:31 +08:00
parent 6c91a3c24a
commit 1d90ef8064
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@ export default {
this.begin = this.$route.query.begin || ''; this.begin = this.$route.query.begin || '';
this.end = this.$route.query.end || ''; this.end = this.$route.query.end || '';
this.page = this.$route.query.page || 1; this.page = this.$route.query.page || 1;
this.latest = this.$route.query.latest == 'true' ? true : false; this.latest = this.$route.query.latest === 'true' || this.$route.query.latest === true;
this.failedOnly = this.$route.query.failedOnly == 'true' ? true : false; this.failedOnly = this.$route.query.failedOnly === 'true' || this.$route.query.failedOnly === true;
}, },
fetchList(query){ fetchList(query){