管理画面でstatsを継続リクエストしないように (#5608)
This commit is contained in:
parent
d95242cab0
commit
932436096f
|
@ -115,7 +115,6 @@ export default Vue.extend({
|
||||||
connection: null,
|
connection: null,
|
||||||
meta: null,
|
meta: null,
|
||||||
instances: [],
|
instances: [],
|
||||||
clock: null,
|
|
||||||
faDatabase
|
faDatabase
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -124,7 +123,6 @@ export default Vue.extend({
|
||||||
this.connection = this.$root.stream.useSharedConnection('serverStats');
|
this.connection = this.$root.stream.useSharedConnection('serverStats');
|
||||||
|
|
||||||
this.updateStats();
|
this.updateStats();
|
||||||
this.clock = setInterval(this.updateStats, 3000);
|
|
||||||
|
|
||||||
this.$root.getMeta().then(meta => {
|
this.$root.getMeta().then(meta => {
|
||||||
this.meta = meta;
|
this.meta = meta;
|
||||||
|
@ -145,7 +143,6 @@ export default Vue.extend({
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.connection.dispose();
|
this.connection.dispose();
|
||||||
clearInterval(this.clock);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue