mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 12:14:41 -05:00
[lazy load lang] load the language file on create
This commit is contained in:
parent
50593f3edf
commit
c50b2b636a
@ -9,6 +9,12 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async created() {
|
||||||
|
if (this.language !== "en") {
|
||||||
|
await this.changeLang(this.language);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
async language(lang) {
|
async language(lang) {
|
||||||
await this.changeLang(lang);
|
await this.changeLang(lang);
|
||||||
|
Loading…
Reference in New Issue
Block a user