File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import useStore from '@/stores'
2525import Auth from ' @/views/chat/auth/index.vue'
2626import { hexToRgba } from ' @/utils/theme'
2727import { useI18n } from ' vue-i18n'
28+ import { getBrowserLang } from ' @/locales/index'
2829const { locale } = useI18n ({ useScope: ' global' })
2930const route = useRoute ()
3031const { application, user } = useStore ()
@@ -80,7 +81,7 @@ const init_data_end = ref<boolean>(false)
8081const applicationAvailable = ref <boolean >(true )
8182function getAppProfile() {
8283 return application .asyncGetAppProfile (loading ).then ((res : any ) => {
83- locale .value = res .data ?.language
84+ locale .value = res .data ?.language || getBrowserLang ()
8485 show_history .value = res .data ?.show_history
8586 application_profile .value = res .data
8687 })
You can’t perform that action at this time.
0 commit comments