fix(js入口文件): 调整语言参数的识别

This commit is contained in:
hzj 2025-11-28 19:11:13 +08:00
parent 2e12c3f6e0
commit e6aefe11a4
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@
" "
@click="showLang" @click="showLang"
> >
<div style="font-weight: bold">{{ currentLangType }}</div> <div style="font-weight: bold">{{ currentLangName }}</div>
<transition name="slide-fade"> <transition name="slide-fade">
<div v-show="visibleList" class="extraList"> <div v-show="visibleList" class="extraList">
<div <div
@ -153,7 +153,7 @@ const langStore = useLangStore()
const visibleList = ref(false) // const visibleList = ref(false) //
// //
const currentLangType = computed(() => { const currentLangName = computed(() => {
return langStore.selectedLang?.value || 'EN' return langStore.selectedLang?.value || 'EN'
}) })

View File

@ -67,7 +67,7 @@ let finalLang = null // 最终使用的语言
if (langParam) { if (langParam) {
if (langParam === 'en') { if (langParam === 'en') {
finalLang = 'en' finalLang = 'en'
} else if (langParam.startsWith('ar-')) { } else if (langParam.startsWith('ar')) {
finalLang = 'ar' finalLang = 'ar'
} }
} }