add autoclean storage

This commit is contained in:
liangping
2022-10-28 14:10:03 +08:00
parent f03ee64cfa
commit f11c119f43
2 changed files with 17 additions and 6 deletions
+4 -4
View File
@@ -279,10 +279,10 @@ export default {
},
},
created() {
// const cached = JSON.parse(getCachedValidators(this.$route.params.chain))
// if (cached) {
// this.validators = cached
// }
const cached = JSON.parse(getCachedValidators(this.$route.params.chain))
if (cached) {
this.validators = cached
}
this.$http.getValidatorList().then(res => {
this.validators = res
})