File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,7 @@ export default {
449
449
this .interval = setInterval (() => this .refresh (), 300000 )
450
450
this .identity .time = Math .floor ((new Date ()).getTime () / 1000 )
451
451
this .refr = setInterval (() => this .refresher (), 60000 )
452
+ this .check = setInterval (() => this .checkNodeRun (), 600000 )
452
453
},
453
454
methods: {
454
455
async getAccountResources () {
@@ -547,11 +548,10 @@ export default {
547
548
this .getAccountResources ()
548
549
this .getUptime ()
549
550
this .getRank ()
550
- this .checkNodeRun ()
551
551
}
552
552
},
553
553
checkNodeRun () {
554
- if (this .nodes .length > 0 && ! this .nodes .some (item => item .account === this .identity .account_name )) {
554
+ if (this .identity . account_name && this . nodes .length > 0 && ! this .nodes .some (item => item .account === this .identity .account_name )) {
555
555
this .$userError (' Oops, I can\' t see your node in the list. Try to update the list or check your node.' , ' Check node running action' )
556
556
}
557
557
},
@@ -894,7 +894,7 @@ export default {
894
894
})
895
895
this .$userResult (' Voted successfully!' , result)
896
896
this .voting_list = []
897
- setInterval (() => this .refresher (), 5000 )
897
+ setInterval (() => this .refresher (), 3000 )
898
898
} catch (error) {
899
899
this .$userError (error, ' Vote action' )
900
900
}
You can’t perform that action at this time.
0 commit comments