Remove loading before page destroyed

This commit is contained in:
liangping 2021-09-20 21:34:00 +08:00
parent b237eed349
commit 9c32eac1f6

View File

@ -16,6 +16,7 @@
:key="index"
sm="12"
md="4"
class="text-truncate"
>
<span class="d-inline-block text-truncate font-weight-bold">{{ index+1 }} {{ x.validator.moniker }}</span>
<template>
@ -82,6 +83,7 @@ export default {
this.initBlocks()
},
beforeDestroy() {
this.blocks = [] // clear running tasks if it is not finish
clearInterval(this.timer)
},
methods: {