|
@@ -24,7 +24,7 @@ export const useLocaleStore = defineStore({
|
|
},
|
|
},
|
|
getters: {
|
|
getters: {
|
|
getLocale(): LocaleType {
|
|
getLocale(): LocaleType {
|
|
- console.log('getLocale', this.localInfo)
|
|
|
|
|
|
+ // console.log('getLocale', this.localInfo)
|
|
if (this.localInfo?.locale) {
|
|
if (this.localInfo?.locale) {
|
|
localStorage.setItem('lang', this.localInfo?.locale ?? 'zh')
|
|
localStorage.setItem('lang', this.localInfo?.locale ?? 'zh')
|
|
}
|
|
}
|