mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
load once and cache
This commit is contained in:
parent
1db6722670
commit
15d7f5d348
3 changed files with 9 additions and 2 deletions
|
@ -335,6 +335,7 @@ export default {
|
|||
*/
|
||||
saveGeneral() {
|
||||
localStorage.timezone = this.$root.userTimezone;
|
||||
this.$root.use12HourTimeFormat = this.settings.use12HourTimeFormat;
|
||||
this.saveSettings();
|
||||
},
|
||||
/**
|
||||
|
|
|
@ -113,8 +113,11 @@ export default {
|
|||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
created() {
|
||||
this.loadSettings();
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.getImportantHeartbeatListLength();
|
||||
|
||||
this.$root.emitter.on("newImportantHeartbeat", this.onNewImportantHeartbeat);
|
||||
|
|
|
@ -413,8 +413,11 @@ export default {
|
|||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
created() {
|
||||
this.loadSettings();
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.getImportantHeartbeatListLength();
|
||||
|
||||
this.$root.emitter.on("newImportantHeartbeat", this.onNewImportantHeartbeat);
|
||||
|
|
Loading…
Reference in a new issue