mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-10-09 10:29:24 +08:00
load once and cache
This commit is contained in:
@@ -335,6 +335,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
saveGeneral() {
|
saveGeneral() {
|
||||||
localStorage.timezone = this.$root.userTimezone;
|
localStorage.timezone = this.$root.userTimezone;
|
||||||
|
this.$root.use12HourTimeFormat = this.settings.use12HourTimeFormat;
|
||||||
this.saveSettings();
|
this.saveSettings();
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
@@ -113,8 +113,11 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
created() {
|
||||||
this.loadSettings();
|
this.loadSettings();
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
this.getImportantHeartbeatListLength();
|
this.getImportantHeartbeatListLength();
|
||||||
|
|
||||||
this.$root.emitter.on("newImportantHeartbeat", this.onNewImportantHeartbeat);
|
this.$root.emitter.on("newImportantHeartbeat", this.onNewImportantHeartbeat);
|
||||||
|
@@ -413,8 +413,11 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
created() {
|
||||||
this.loadSettings();
|
this.loadSettings();
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
this.getImportantHeartbeatListLength();
|
this.getImportantHeartbeatListLength();
|
||||||
|
|
||||||
this.$root.emitter.on("newImportantHeartbeat", this.onNewImportantHeartbeat);
|
this.$root.emitter.on("newImportantHeartbeat", this.onNewImportantHeartbeat);
|
||||||
|
Reference in New Issue
Block a user