mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-24 21:06:43 -06:00
自動更新
This commit is contained in:
parent
78a8293520
commit
1a61f2cee9
1 changed files with 12 additions and 2 deletions
|
@ -51,9 +51,19 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.$root.api('admin/queue/stats').then(stats => {
|
const fetchStats = () => {
|
||||||
|
this.$root.api('admin/queue/stats', {}, true).then(stats => {
|
||||||
this.stats = stats;
|
this.stats = stats;
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
fetchStats();
|
||||||
|
|
||||||
|
const clock = setInterval(fetchStats, 1000);
|
||||||
|
|
||||||
|
this.$once('hook:beforeDestroy', () => {
|
||||||
|
clearInterval(clock);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in a new issue