mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-10 07:34:07 -08: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: {
|
||||
async language(lang) {
|
||||
await this.changeLang(lang);
|
||||
|
|
Loading…
Reference in a new issue