Fix:Initial language code setting eventBus not yet defined

This commit is contained in:
advplyr 2024-02-16 09:12:47 -06:00
parent ce528d4012
commit a13217dddf
2 changed files with 6 additions and 6 deletions

View file

@ -84,7 +84,7 @@ async function loadi18n(code) {
Vue.prototype.$setDateFnsLocale(languageCodeMap[code].dateFnsLocale)
this.$eventBus.$emit('change-lang', code)
this?.$eventBus?.$emit('change-lang', code)
return true
}