diff --git a/webui/src/components/_commons/ToolBar.vue b/webui/src/components/_commons/ToolBar.vue index 9a1cb9f05..b508d09c2 100644 --- a/webui/src/components/_commons/ToolBar.vue +++ b/webui/src/components/_commons/ToolBar.vue @@ -21,7 +21,9 @@ export default { name: 'ToolBar', data () { return { - loadingOverview: true + loadingOverview: true, + intervalRefresh: null, + intervalRefreshTime: 5000 } }, computed: { @@ -65,8 +67,10 @@ export default { }, created () { this.refreshAll() + this.intervalRefresh = setInterval(this.onGetAll, this.intervalRefreshTime) }, beforeDestroy () { + clearInterval(this.intervalRefresh) this.$store.commit('core/getOverviewClear') } }