This commit is contained in:
2023-12-06 16:23:28 +08:00
parent c695032588
commit 19aea9f4f9

View File

@@ -35,7 +35,7 @@ Vue.config.productionTip = false
Vue.prototype.$langPre = {
computedProp (suffix) {
// return localstorage.getItem( key: 'lang') + '_' + suffix
return localStorage.getItem('locale').slice(0, 2) + '_' + suffix
return i18n.locale.slice(0, 2) + '_' + suffix
}
}