Added auto-refresh every 60s
This commit is contained in:
@@ -63,6 +63,7 @@ export default class City extends Vue {
|
|||||||
|
|
||||||
private created() {
|
private created() {
|
||||||
this.getData();
|
this.getData();
|
||||||
|
setInterval(this.getData, 1000*60);
|
||||||
}
|
}
|
||||||
|
|
||||||
private getData() {
|
private getData() {
|
||||||
|
|||||||
Reference in New Issue
Block a user