forked from LaconicNetwork/cosmos-explorer
Remove loading before page destroyed
This commit is contained in:
parent
b237eed349
commit
9c32eac1f6
@ -16,6 +16,7 @@
|
|||||||
:key="index"
|
:key="index"
|
||||||
sm="12"
|
sm="12"
|
||||||
md="4"
|
md="4"
|
||||||
|
class="text-truncate"
|
||||||
>
|
>
|
||||||
<span class="d-inline-block text-truncate font-weight-bold">{{ index+1 }} {{ x.validator.moniker }}</span>
|
<span class="d-inline-block text-truncate font-weight-bold">{{ index+1 }} {{ x.validator.moniker }}</span>
|
||||||
<template>
|
<template>
|
||||||
@ -82,6 +83,7 @@ export default {
|
|||||||
this.initBlocks()
|
this.initBlocks()
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
this.blocks = [] // clear running tasks if it is not finish
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user