根据默认获取区号

This commit is contained in:
2020-11-18 09:55:25 +08:00
parent c73f45d27e
commit 97a5090e0f
3 changed files with 5 additions and 4 deletions

View File

@@ -99,8 +99,8 @@ export default createStore({
state.userinfo.languageValue = data.yy // 'en' 'zh'
state.userinfo.zoneStr = timeZoneFormatted;
state.userinfo.currency = data.hb;
saveValue("Lanvuage", data.yx);
if( data.yx != geti18n().$s()){
saveValue("Lanvuage", data.yy);
if( data.yy != geti18n().$s()){
location.reload()
}
// setLanvuage(data[0]);